“创建新的 Android 虚拟设备 (AVD)”对话框中的“确定”按钮不执行任何操作
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22211572/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
OK button in "Create new Android Virtual Device (AVD)" dialog does not do anything
提问by user3385845
Tried to create an AVD from the eclipse environment in the following steps:
尝试通过以下步骤从 eclipse 环境创建 AVD:
- Click Window/Android Virtual Device Manager. This brings up the "Android Virtual Device Manager" dialog.
- In the dialog, click "New...". This brings up the "Create new Android Virtual Device (AVD)" dialog.
- Fill out the fields in this dialog, then click the OK button.
- But the OK button doesn't do anything. The "Create new Android Virtual Device (AVD)" dialog still stays up and nothing is created.
- 单击窗口/Android 虚拟设备管理器。这将打开“Android 虚拟设备管理器”对话框。
- 在对话框中,单击“新建...”。这将打开“创建新的 Android 虚拟设备 (AVD)”对话框。
- 填写此对话框中的字段,然后单击“确定”按钮。
- 但是确定按钮没有任何作用。“创建新的 Android 虚拟设备 (AVD)”对话框仍然存在,并且没有创建任何内容。
回答by AmanKapoor27
you need to avoid spaces in the AVD name. Put underscore instead and the OK button will become active :)
您需要避免 AVD 名称中的空格。改为使用下划线,确定按钮将变为活动状态:)
回答by Joshua Alger
Looks like this is a bug reported since ADT 22.6. Please find more information in this post:
看起来这是自 ADT 22.6 以来报告的错误。请在这篇文章中找到更多信息:
Cannot create or edit Android Virtual Devices (AVD) from Eclipse, ADT 22.6
无法从 Eclipse、ADT 22.6 创建或编辑 Android 虚拟设备 (AVD)
I was actually able to reproduce the same issue inside of my environment. As a workaround I was able to open the AVD manager outside of Eclipse by using the following command in terminal:
我实际上能够在我的环境中重现相同的问题。作为一种解决方法,我可以通过在终端中使用以下命令在 Eclipse 之外打开 AVD 管理器:
android-sdk-location/tools/android avd
android-sdk-location/tools/android avd
After opening the AVD manager outside of eclipse it let me create the device successfully. Please note you will have to restart Eclipse once you create the device in order for it to show up in the list of usable devices.
在 Eclipse 之外打开 AVD 管理器后,它让我成功创建了设备。请注意,创建设备后,您必须重新启动 Eclipse,才能将其显示在可用设备列表中。
Please look at this similar post for some more suggestions if needed:
如果需要,请查看此类似帖子以获取更多建议:
AVD Manager - Cannot Create Android Virtual Device
EDIT: Update to latest AVD manager and this issue should go away
编辑:更新到最新的 AVD 管理器,这个问题应该会消失
回答by Amin
It's not a bug! I solved the problem by deleting the gap between the letters of the AVD name which I'm going to make!
这不是错误!我通过删除我要制作的 AVD 名称的字母之间的间隙解决了这个问题!
Whenever I add a space in the AVD name, the "ok" button is disabled!
每当我在 AVD 名称中添加一个空格时,“确定”按钮就会被禁用!
回答by Default
Using the "Create Device" didn't work for me, however using "Clone" from an existing device and just modifying all of the values worked fine.
Spaces were allowed in the name as well.
使用“创建设备”对我不起作用,但是从现有设备使用“克隆”并修改所有值工作正常。
名称中也允许有空格。
回答by Wade Anderson
I was able to find a solution by installing the System Images for the Android version I was looking to emulate.
我能够通过为我想要模拟的 Android 版本安装系统映像来找到解决方案。
Open up the Android SDK Manager -> Android 4.4.2 -> Check ARM EABI v7a System Image and Intel x86 Atom System Image -> Click Install Packages.
打开 Android SDK Manager -> Android 4.4.2 -> Check ARM EABI v7a System Image and Intel x86 Atom System Image -> 点击 Install Packages。
Reopen the AVD Manager and create a new virtual device.
重新打开 AVD 管理器并创建一个新的虚拟设备。
回答by user3300301
Even i faced the same problem, installing ARM EABI v7a System Image solved. try this "Open your SDK manager and ensure that you've installed ARM EABI v7a System Image"
即使我遇到了同样的问题,安装 ARM EABI v7a System Image 也解决了。试试这个“打开你的 SDK 管理器并确保你已经安装了 ARM EABI v7a 系统映像”
回答by Kartheek s
If you can't create a device then just clone it.
如果您无法创建设备,则只需克隆它。
Open ADT Manger
Click on Device Definations
Double Tap on the device you want
Edit it and click on clone
Then create your device as you wish with low specifications.
You are done now
你现在完成了
回答by Ofentse Ramolodi
I had to delete 'ALL' my old AVDs first, then OK button appeared and I was able to create new ones. Some old AVDs were built on old versions of android so i suspect this was causing conflict to AVD manager.
我必须先删除“所有”我的旧 AVD,然后出现确定按钮,我才能创建新的。一些旧的 AVD 是在旧版本的 android 上构建的,所以我怀疑这会导致 AVD 管理器发生冲突。
回答by nomo_kazza
Guys the issue has been solved, from ADT or Eclipse open the SDK Manager (Windows > SDK Manager) and then from the SDK Manager you can use Menu Tools > Manage AVDs and that will work to create AVDs as well to repair old AVDs.
伙计们,问题已经解决,从 ADT 或 Eclipse 打开 SDK 管理器(Windows > SDK 管理器),然后从 SDK 管理器您可以使用菜单工具 > 管理 AVD,这将用于创建 AVD 以及修复旧的 AVD。
回答by Sifar
Another silly thing that makes the OK button disabled is using the same name for the Virtual machine. Every time you click the "Create AVD" button,from the "Device Definitions" tab, AVD manager fills in a name by default. I had created one such AVD earlier and wanted to try another configuration and had the OK button disabled because the name already was in use.
另一个使确定按钮被禁用的愚蠢的事情是为虚拟机使用相同的名称。每次单击“创建 AVD”按钮时,在“设备定义”选项卡中,AVD 管理器都会默认填写一个名称。我之前已经创建了一个这样的 AVD,想尝试另一种配置,并禁用了 OK 按钮,因为该名称已被使用。