由于某种原因,当我尝试创建AVD时,OK按钮是不可点击的。有人知道我哪里做错了吗?


当前回答

这可能发生在以下情况:

You have multiple copies of the Android SDK installed on your machine. You may be updating the available images and devices for one copy of the Android SDK, and trying to debug or run your application in another. If you're using Eclipse, take a look at your "Preferences | Android | SDK Location". Make sure it's the path you expect. If not, change the path to point to where you think the Android SDK is installed. You don't have an Android device setup in your emulator as detailed in other answers on this page.

其他回答

因为CPU/ABI说“没有为这个目标安装系统映像”。需要安装系统镜像。

在Android SDK管理器中检查您已经安装了“ARM EABI v7a系统镜像”(对于每个Android 4.0及以上版本,您必须安装一个系统镜像才能运行虚拟设备)

在你的情况下,只有ARM系统映像存在(Android 4.2)。如果您运行的是旧版本,英特尔提供了系统映像(Intel x86 ATOM)。您可以在互联网上查看两者之间的性能比较。

在我的情况下(见下图),我还没有安装Android 4.2的系统镜像,而我已经安装了ARM和英特尔系统镜像4.1.2

只要我不安装4.2系统镜像,我就会有和你一样的问题。

更新:这篇最近的文章在英特尔架构上加速Android模拟器解释了如何正确使用/安装英特尔系统映像来加速模拟器。

编辑/跟进

我在图片中展示的是Android 4.2,因为这是最初的问题,但对每个版本的Android都适用。

当然(正如@RedPlanet所说),如果你是为MIPS CPU设备开发,你必须安装“MIPS系统镜像”。

最后,正如@SeanJA所说,您必须重新启动eclipse才能看到新安装的映像。但对我来说,我总是重新启动我更新过的软件,以确保它考虑到所有的修改,我认为这样做是一个很好的做法。

在完成ARM EABI v7a系统镜像安装后必须重新启动Eclipse。

这可能发生在以下情况:

You have multiple copies of the Android SDK installed on your machine. You may be updating the available images and devices for one copy of the Android SDK, and trying to debug or run your application in another. If you're using Eclipse, take a look at your "Preferences | Android | SDK Location". Make sure it's the path you expect. If not, change the path to point to where you think the Android SDK is installed. You don't have an Android device setup in your emulator as detailed in other answers on this page.

我在用4.2.2图像创建AVD时也遇到了同样的问题,我通过以下方法解决了它:

检查adt-bundle-windows-x86_64-20131030\sdk\system-images\android-17文件夹中是否存在“default”文件夹。 如果存在,则将“默认”文件夹的内容(下载的系统映像)移动到 adt - bundle - windows - x86_64 sdk - 20131030 \ \系统映像\ android-17。

希望这能有所帮助。

对于Ubuntu和正在运行的android-studio运行安装包(默认情况下没有安装):

android update sdk