Bản lưu trữ trình mô phỏng có thể tải xuống
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trang này cung cấp bản lưu trữ các bản phát hành của Trình mô phỏng. Vui lòng xem lại tệp giấy phép trong gói trình mô phỏng để biết thông tin về việc cấp phép.
Để có trải nghiệm tốt nhất, vui lòng xem Yêu cầu về hệ thống của trình mô phỏng.
Cách cài đặt thủ công một phiên bản của trình mô phỏng được chọn
Để cài đặt một phiên bản trình mô phỏng nhất định trong Studio theo cách thủ công, bạn cần dán nội dung gói trình mô phỏng mong muốn vào thư mục cài đặt SDK và thay đổi phiên bản trình mô phỏng được chỉ định trong tệp package.xml
. Cụ thể, hãy làm theo các bước sau:
- Tìm thư mục cài đặt SDK của bạn. Vị trí mặc định của thư mục này sẽ khác nhau tuỳ theo nền tảng:
- Trên Windows, đó là thư mục
%LocalAppData%\Android\Sdk
. Trạng thái này thường mở rộng thành C:\Users\<username>\AppData\Local\Android\Sdk
, mặc dù dữ liệu này có thể thay đổi tuỳ theo hệ thống của bạn.
- Trên macOS, đó là thư mục
$HOME/Library/Android/sdk
.
- Trên Linux, đó là thư mục
$HOME/Android/Sdk
.
Bạn có thể kiểm tra vị trí của thư mục cài đặt SDK bằng cách mở Studio, rồi nhấp vào Android Studio > Preferences > Appearances & Behavior > System Settings > Android SDK (Android Studio > Lựa chọn ưu tiên > Giao diện và hành vi > Cài đặt hệ thống > Android SDK). Đường dẫn tệp Android SDK Location là vị trí thư mục cài đặt SDK của bạn.
Nếu bạn đang dùng hệ điều hành macOS và duyệt nội dung bằng Finder, thư mục Library
có thể sẽ không hiển thị theo mặc định. Để chuyển đến đó, hãy mở Finder rồi nhấp vào Go > Go to Folder (Đi > Đi tới thư mục) rồi tìm "Library".
- Hãy đổi tên thư mục
emulator
hiện có trong thư mục cài đặt SDK, vì bạn sẽ giải nén thư mục emulator
mới tải xuống đây ở bước tiếp theo. Ví dụ: đặt tên cho nó là emulator_original
.
- Giải nén tệp zip trình mô phỏng mà bạn đã tải xuống. Di chuyển nội dung vào thư mục cài đặt SDK.
Trên macOS: Sau khi giải nén tệp zip của trình mô phỏng, hãy xoá thuộc tính cách ly trên gói trình mô phỏng bằng cách chạy:
xattr -dr com.apple.quarantine emulator/
Thao tác này sẽ làm giảm thông báo về việc gói nên được kiểm tra hay chặn.
- Dán tệp
package.xml
từ thư mục emulator_original
vào thư mục emulator
mới.
Thay đổi phiên bản trình mô phỏng được chỉ định trong tệp package.xml
thành phiên bản mà bạn đã tải xuống và muốn dùng. Để thực hiện việc này, hãy di chuyển xuống cuối tệp package.xml
rồi tìm văn bản có dạng như sau:
<revision><major>31</major><minor>1</minor><micro>4</micro></revision>
Đây là nơi bạn nên chỉ định phiên bản trình mô phỏng bạn đã tải xuống và muốn cài đặt.
[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."]]