模拟器下载归档
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页提供了各个模拟器版本的归档文件。如需了解许可信息,请查看模拟器软件包中的许可文件。
为了获得最佳体验,请参阅模拟器系统要求。
如何手动安装指定版本的模拟器
如需在 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
。
您可以打开 Studio 并依次点击 Android Studio > Preferences > Appearances & Behavior > System Settings > Android SDK,查看 SDK 安装目录的位置。Android SDK Location 文件路径即是 SDK 安装目录的位置。
如果您使用的是 macOS,并使用“访达”浏览内容,则默认情况下,Library
文件夹可能不会显示。如需转到该文件夹,请打开“访达”,然后依次点击“前往”>“前往文件夹”并搜索“资源库”。
- 重命名 SDK 安装目录中现有的
emulator
目录,因为下一步需要在这里解压缩新下载的 emulator
目录。例如,将其命名为 emulator_original
。
- 解压缩下载的模拟器 ZIP 文件。将内容移到 SDK 安装目录中。
在 macOS 上:解压缩模拟器 ZIP 文件后,请通过运行以下命令清除模拟器软件包上的“quarantine”属性:
xattr -dr com.apple.quarantine emulator/
这样应该可以减少关于应检查还是屏蔽该软件包的消息。
- 将
emulator_original
目录中的 package.xml
文件粘贴到新的 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."]]