ที่เก็บถาวรสำหรับดาวน์โหลดโปรแกรมจำลอง
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หน้านี้มีข้อมูลที่เก็บถาวรของรุ่นโปรแกรมจำลอง โปรดดู
ไฟล์ใบอนุญาต
ในแพ็กเกจโปรแกรมจำลองสำหรับข้อมูลการอนุญาตให้ใช้สิทธิ
โปรดอ่านข้อกำหนดของระบบโปรแกรมจำลองเพื่อประสบการณ์การใช้งานที่ดีที่สุด
วิธีติดตั้งโปรแกรมจำลองเวอร์ชันที่เลือกด้วยตนเอง
หากต้องการติดตั้งโปรแกรมจำลองเวอร์ชันที่เลือกบน Studio ด้วยตนเอง คุณต้องวาง
เนื้อหาแพ็กเกจโปรแกรมจำลองลงในไดเรกทอรีการติดตั้ง SDK ของคุณ และเปลี่ยนเวอร์ชันโปรแกรมจำลอง
ที่ระบุในไฟล์ package.xml
โปรดทำตามขั้นตอนต่อไปนี้โดยเฉพาะ
- ค้นหาไดเรกทอรีการติดตั้ง SDK ตำแหน่งเริ่มต้นของไดเรกทอรีนี้จะแตกต่างกันตาม
แพลตฟอร์ม:
- ใน Windows จะเป็นไดเรกทอรี
%LocalAppData%\Android\Sdk
โดยปกติ
ขยายเป็น C:\Users\<username>\AppData\Local\Android\Sdk
แต่อาจ
จะแตกต่างกันไปตามระบบ
- ส่วนใน macOS จะเป็นไดเรกทอรี
$HOME/Library/Android/sdk
- ใน Linux นี่คือไดเรกทอรี
$HOME/Android/Sdk
คุณตรวจสอบว่าไดเรกทอรีการติดตั้ง SDK ของคุณอยู่ที่ใดได้โดยเปิด Studio แล้วคลิก
Android Studio > ค่ากำหนด > การปรากฏและ พฤติกรรม > การตั้งค่าระบบ >
Android SDK เส้นทางไฟล์ตำแหน่ง SDK ของ Android คือการติดตั้ง SDK ของคุณ
ตำแหน่งไดเรกทอรี
หากคุณใช้ macOS และท่องเว็บโดยใช้ Finder โฟลเดอร์ Library
อาจไม่ได้
แสดงโดยค่าเริ่มต้น หากต้องการไปยังส่วนต่างๆ ให้เปิด Finder แล้วคลิก ไป > ไปที่โฟลเดอร์
แล้วค้นหา "Library"
- เปลี่ยนชื่อไดเรกทอรี
emulator
ที่มีอยู่ในไดเรกทอรีการติดตั้ง SDK เนื่องจาก
คุณจะได้คลายการบีบอัดไดเรกทอรี emulator
ที่ดาวน์โหลดใหม่ที่นี่ในขั้นตอนถัดไป สำหรับ
เช่น ตั้งชื่อว่า emulator_original
- แตกไฟล์ ZIP ของโปรแกรมจำลองที่คุณดาวน์โหลด ย้ายเนื้อหาไปยังการติดตั้ง SDK
ไดเรกทอรี
ใน macOS: หลังจากคลายการบีบอัดไฟล์ ZIP ของโปรแกรมจำลอง ให้ล้างแอตทริบิวต์เขตกักบริเวณ
แพ็กเกจโปรแกรมจำลองโดยการเรียกใช้:
xattr -dr com.apple.quarantine emulator/
ซึ่งจะลดข้อความที่ระบุว่าควรตรวจสอบหรือบล็อกแพ็กเกจหรือไม่
- วางไฟล์
package.xml
จากไดเรกทอรี emulator_original
ลงใน
ไดเรกทอรี emulator
ใหม่
เปลี่ยนเวอร์ชันโปรแกรมจำลองที่ระบุในไฟล์ package.xml
เป็นเวอร์ชันที่คุณ
ดาวน์โหลดและต้องการใช้ โดยเลื่อนไปที่ด้านล่างของ package.xml
และค้นหาข้อความที่มีลักษณะดังนี้
<revision><major>31</major><minor>1</minor><micro>4</micro></revision>
ซึ่งเป็นที่ที่คุณควรระบุเวอร์ชันโปรแกรมจำลองที่ดาวน์โหลดมาและต้องการติดตั้ง
[null,null,[],[],[],null,["This page provides an archive of Emulator releases. Please review the\n[license file](https://cs.android.com/android/platform/superproject/+/master:prebuilts/android-emulator/NOTICE)\nin the emulator package for licensing information.\n\nFor the best experience, please review the [Emulator system requirements](/studio/run/emulator#requirements).\n\nHow to manually install a select version of emulator\n\nTo manually install a select version of emulator on Studio, you need to paste the desired\nemulator package contents into your SDK installation directory, and change the emulator version\nspecified in the `package.xml` file. Specifically, follow these steps:\n\n1. Locate your SDK installation directory. The default location of this directory varies by platform:\n - On Windows, it's the `%LocalAppData%\\Android\\Sdk` directory. This normally expands to `C:\\Users\\\u003cusername\u003e\\AppData\\Local\\Android\\Sdk`, although it might vary based on your system.\n - On macOS, it's the `$HOME/Library/Android/sdk` directory.\n - On Linux, it's the `$HOME/Android/Sdk` directory.\n\n You can check where your SDK installation directory is by opening Studio and clicking\n **Android Studio \\\u003e Preferences \\\u003e Appearances \\& Behavior \\\u003e System Settings \\\u003e\n Android SDK** . The **Android SDK Location** file path is your SDK installation\n directory location.\n\n If you're using macOS and browsing using Finder, the `Library` folder might not be\n visible by default. To navigate there, open Finder and click **Go \\\u003e Go to Folder**\n and search for \"Library.\"\n2. Rename the existing `emulator` directory in the SDK installation directory, because you'll unzip the newly downloaded `emulator` directory here in the next step. For example, call it `emulator_original`.\n3. Unzip the emulator zip file you downloaded. Move the contents into the SDK installation directory.\n4. On macOS: After unzipping the emulator zip file, clear the quarantine attribute on the\n emulator package by running:\n\n `\n xattr -dr com.apple.quarantine emulator/\n `\n\n This should reduce messages about whether the package should be checked or blocked.\n5. Paste the `package.xml` file from the `emulator_original` directory into the new `emulator` directory.\n6. Change the emulator version specified in the `package.xml` file to the version you\n have downloaded and want to use. To do this, scroll to the bottom of the `package.xml`\n file and find the text that looks like:\n\n `\n \u003crevision\u003e\u003cmajor\u003e31\u003c/major\u003e\u003cminor\u003e1\u003c/minor\u003e\u003cmicro\u003e4\u003c/micro\u003e\u003c/revision\u003e\n `\n\n This is where you should specify the emulator version you downloaded and want to install."]]