简体   繁体   English

如何更改Android Studio 2.3.3中特定AVD的系统映像? [因为我们无法在此版本上启动独立的AVD管理器]

[英]How to change system image for particular AVD in Android studio 2.3.3 ? [as we can't launch standalone AVD manager on this version]

I have download 3 system images for Android Oreo as shown in picture here in SDK manager 我已经下载了3个适用于Android Oreo的系统映像, SDK管理器中的图片所示

在此处输入图片说明

But when I check in Choose System Image from AVD manager in Android Studio, those installed all images are not shown (only Google APIs system image is shown) . 但是,当我在Android Studio中从“ AVD管理器”中选择“选择系统映像”时 ,未显示那些已安装的所有映像(仅显示Google API系统映像)。

I checked in all of the following tabs snapshot here 我在这里签入了以下所有标签快照

在此处输入图片说明

  • Recommended images 推荐图片
  • x86 images x86图片
  • Other images 其他图片

I found the answer. 我找到了答案。

To change system image for particular AVD :- 更改特定AVD的系统映像:

  1. Copy desired system-image name (just name) from 从复制所需的系统映像名称(仅名称)

sdk folder > system-images > android-X [mine was google_apis and google_apis_playstore ] sdk文件夹>系统映像> android-X [我的是google_apisgoogle_apis_playstore ]

If folder is empty then first you need to download system image from sdk manager 如果文件夹为空,则首先需要从sdk管理器下载系统映像

  1. Go to AVD manager from android studio. 从Android Studio转到AVD管理器。
  2. Right click on AVD you want to change and click Show On Disk 右键单击要更改的AVD,然后单击“在磁盘上显示”
  3. It will open file explorer when AVD files are located 找到AVD文件时,它将打开文件资源管理器
  4. Open config file in wordpad (or notepad) 在写字板(或记事本)中打开配置文件
  5. Look for image.sysdir.1=system-images\\android-26\\<paste-system-image-name-here>\\x86\\ 寻找image.sysdir.1=system-images\\android-26\\<paste-system-image-name-here>\\x86\\

image.sysdir.1=system-images\\android-26\\google_apis\\x86\\ image.sysdir.1 =系统图像\\机器人-26 \\ google_apis \\ 86 \\

is replaced by 被替换为

image.sysdir.1=system-images\\android-26\\google_apis_playstore\\x86\\ image.sysdir.1 =系统图像\\机器人-26 \\ google_apis_playstore \\ 86 \\

Now emulator running API 26 is running correctly. 现在,运行API 26的模拟器正在正确运行。

单击第三行中的Choose...按钮,编辑AVD并选择系统映像

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM