简体   繁体   English

AVD 管理器 - 无法创建 Android 虚拟设备

[英]AVD Manager - Cannot Create Android Virtual Device

I just installed the Android Eclipse Plugin and the Android SDK from Google yesterday.我昨天刚刚从 Google 安装了 Android Eclipse 插件和 Android SDK。 I open the AVD Manager window by going to Window -> Android Virtual Device Manager .我通过转到Window -> Android Virtual Device Manager打开 AVD Manager 窗口。 I then click "New" and am presented with the "Create new Android Virtual Device (AVD)" window.然后我单击“新建”并看到“创建新的 Android 虚拟设备 (AVD)”窗口。 The problem is, I can't get the "OK" button to not be greyed out.问题是,我无法让“确定”按钮不变灰。 I choose Nexus 7 from "Device", I give the AVD a name, I choose "Android 4.2 API Level 17" as the target.我从“设备”中选择 Nexus 7,我给 AVD 一个名字,我选择“Android 4.2 API Level 17”作为目标。 And no matter what I do for the rest of the settings, the "OK" button continues to be greyed out.无论我对其余设置做什么,“确定”按钮都会继续变灰。 I am not presented with any errors.我没有遇到任何错误。 Any idea as to what I may be missing and why the window would not allow me to proceed by clicking "OK"?关于我可能缺少什么以及为什么窗口不允许我通过单击“确定”继续操作的任何想法?

You either haven't selected a CPU/ABI target in the dropdown below the target, or you haven't installed a system image.您要么未在目标下方的下拉列表中选择 CPU/ABI 目标,要么尚未安装系统映像。 Open your SDK manager and ensure that you've installed ARM EABI v7a System Image under the Android 4.2 section.打开您的 SDK 管理器并确保您已在 Android 4.2 部分下安装了ARM EABI v7a System Image

I had trouble creating an AVD.我在创建 AVD 时遇到了麻烦。

Either:任何一个:

  • re-start eclipse after installing SDK versions from the SDK manager, or从 SDK 管理器安装 SDK 版本后重新启动 Eclipse,或
  • you should run the "AVD Manager.exe" outside of Eclipse您应该在 Eclipse 之外运行“AVD Manager.exe”

First, make sure you don't have spaces (or other illegal characters like '+','=','/',etc) in the "AVD Name" field.首先,确保“AVD 名称”字段中没有空格(或其他非法字符,如“+”、“=”、“/”等)。 Spaces broke it for me.空间为我打破了它。

I had the same problem, although all required packages were installed.尽管安装了所有必需的软件包,但我遇到了同样的问题。 I closed down Eclipse, ran monitor.bat in the \\android-sdks\\tools\\ folder, opened the AVD Manager from there, and I was able the create virtual devices here.我关闭了 Eclipse,在 \\android-sdks\\tools\\ 文件夹中运行了 monitor.bat,从那里打开了 AVD 管理器,我可以在这里创建虚拟设备。

you need to avoid spaces in the AVD name.您需要避免 AVD 名称中的空格。 & Select the "Skin" option. & 选择“皮肤”选项。

尝试使用tools-foldermonitor.bat创建 AVD,这对我有用!

另一件事让我失望:“名称”字段必须是一个单词,并且不能有空格!

Had the exact same trouble... loading the ARM EABI v7a System Image worked for me too.遇到了完全相同的问题...加载 ARM EABI v7a 系统映像也对我有用。 Thanks very much.非常感谢。

I had previously seen on the Android SDK manager that a system image with the same name (ARM EABI v7a System Image) WAS installed on my system for a more recent SDK (Android 4.2).我之前在 Android SDK 管理器上看到,我的系统上安装了一个同名的系统映像(ARM EABI v7a 系统映像),用于更新的 SDK(Android 4.2)。 Consequently I thought it would negate the need to install the earlier Android 2.2 SDK ARM image, but apparently not.因此,我认为它不需要安装早期的 Android 2.2 SDK ARM 映像,但显然不是。

I had the same problem but now I got it: Check which API you are selecting and for that API version is CPU/ABI available or not.我遇到了同样的问题,但现在我明白了:检查您选择的API以及该API 版本是否可用CPU/ABI If it's available then your work is done.如果它可用,那么您的工作就完成了。 Select the device according to the windows supporting it.根据支持的窗口选择设备。

You need to open up your SDK Manager and make sure everything is installed, especially System Image.您需要打开您的 SDK 管理器并确保已安装所有内容,尤其是系统映像。 After that will be alright!之后就好了!

If you have changed the SDK Path somehow it will not be able to find the SDKs you installed even though it is listing them fine.如果您以某种方式更改了 SDK 路径,它将无法找到您安装的 SDK,即使它很好地列出了它们。

I solved by openig Android SDK Manager and in that dialog choosing the menu Tools -> Manage AVDs.我通过 openig Android SDK Manager 并在该对话框中选择菜单工具 -> 管理 AVD 解决了这个问题。 And when you open Manage AVDs directly from the toolbar of Eclipse you should Refresh to see the AVD you created.当您直接从 Eclipse 的工具栏打开 Manage AVDs 时,您应该刷新以查看您创建的 AVD。

I actually hit on this problem a week ago.我实际上在一周前遇到了这个问题。 The issue had to do with not using an updated Eclipse version of the Android SDK plugin with the latest version of the SDK.该问题与未将 Android SDK 插件的更新 Eclipse 版本与最新版本的 SDK 一起使用有关。 It was a fun problem overall, but it disappeared as soon as I updated it.总的来说,这是一个有趣的问题,但我一更新它就消失了。

I had even updated the AVD images and no luck.我什至更新了 AVD 图像,但没有运气。 Apparently the old plugin cannot see the new image layout or something.显然旧插件无法看到新的图像布局或其他东西。 This is for version 22.3 of the SDK.这适用于 SDK 的 22.3 版。

On Kubuntu 12.04, Eclipse Kepler, ADT installed, I experienced the same symptoms.在 Kubuntu 12.04、Eclipse Kepler、ADT 安装上,我遇到了同样的症状。 The ARM EABI v7a System Image was already installed. ARM EABI v7a 系统映像已安装。 The way out was to run the tool from the command line, then it did not complain.出路是从命令行运行该工具,然后它没有抱怨。 I guess a restart of eclipse could have done the trick but I am not sure any more if I tried dit or not.我想重新启动 eclipse 可以解决问题,但我不确定是否尝试过。

我在 android-sdks\\tools 中打开了 monitor.bat 并在那里启动了设备管理器,我能够创建 AVD。

Launching the AVD Manager from Visual Studio 2015 resolved this issue for me.从 Visual Studio 2015 启动 AVD Manager 为我解决了这个问题。

I had (a lot of packages) all the required packages installed but hadn't used them for some time & had issues detecting them in the SDK manager.我已经(很多包)安装了所有必需的包,但有一段时间没有使用它们并且在 SDK 管理器中检测到它们时遇到问题 I attempted all the solutions provided above to no avail, including running the AVD after running the monitor.bat file in 'android/sdk/tools'.我尝试了上面提供的所有解决方案都无济于事,包括在“android/sdk/tools”中运行 monitor.bat 文件后运行 AVD。

I then launched the AVD from VS in 'Tools->Android->Android Emulator Manager' and it detected both 'Google APIs Intel Atom x86' & the ARM EABI v7a system Images right off the bat!然后,我在“工具->Android->Android 模拟器管理器”中从 VS 启动了 AVD,它立即检测到了“Google APIs Intel Atom x86”和 ARM EABI v7a 系统图像

Target is set to API Level 23.目标设置为 API 级别 23。

If you are having AVD creation problems, just try to put it inside a new folder (eclipse, android sdk, avd) and then you just run it and it should work.如果您在创建 AVD 时遇到问题,请尝试将其放入新文件夹(eclipse、android sdk、avd)中,然后运行它,它应该可以工作。 Just open Eclipse in that folder and run as usual只需在该文件夹中打开 Eclipse 并照常运行

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

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