user3385845
user3385845

Reputation: 491

OK button in "Create new Android Virtual Device (AVD)" dialog does not do anything

Tried to create an AVD from the eclipse environment in the following steps:

  1. Click Window/Android Virtual Device Manager. This brings up the "Android Virtual Device Manager" dialog.
  2. In the dialog, click "New...". This brings up the "Create new Android Virtual Device (AVD)" dialog.
  3. Fill out the fields in this dialog, then click the OK button.
  4. But the OK button doesn't do anything. The "Create new Android Virtual Device (AVD)" dialog still stays up and nothing is created.

Upvotes: 49

Views: 79724

Answers (17)

Veverke
Veverke

Reputation: 11358

My problem was solved by freeing disk space.

I had some 2 GB free, and noticed that after closing the Add Virtual Device window there was a red notification on the top-right corner of Android Studio.

Clicked it, and it showed a log message stating freeing disk space was required.

I did it, and next time I tried adding a virtual device, it worked.

Upvotes: 0

JavaadPatel
JavaadPatel

Reputation: 97

I deleted and reinstalled Intel HAXM as I was using the Intel Atom image. After inputting all the settings the 'OK' button was still greyed out only after selecting 'Skin' field as 'No Skin' did it become active, so I guess you have to choose a skin, even if that means choosing 'No Skin'.

That worked for me.

Upvotes: 0

Farnaz
Farnaz

Reputation: 1

you need AVD Manager so install SDK from here, then make Android Virtual Device where you install SDK, not in Eclips.

when you run Eclips you can see your AVD in windows->Android Virtual Device Manager.

later, you can add system image, APIs, ... in SDK, because this SDK isn't full.

Upvotes: -1

CFA
CFA

Reputation: 1

A duplicate AVD Name also keeps the OK button disabled please check that as well

Upvotes: 0

Wade Anderson
Wade Anderson

Reputation: 2519

I was able to find a solution by installing the System Images for the Android version I was looking to emulate.

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.

enter image description here

Reopen the AVD Manager and create a new virtual device.

Upvotes: 7

Sifar
Sifar

Reputation: 1

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.

Upvotes: 0

nomo_kazza
nomo_kazza

Reputation: 1

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.

Upvotes: 0

Ofentse Ramolodi
Ofentse Ramolodi

Reputation: 1

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.

Upvotes: 0

Kartheek Sarabu
Kartheek Sarabu

Reputation: 3926

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

Upvotes: 4

Alex Sed
Alex Sed

Reputation: 760

In Windows, open the installed folder of the android-sdk.

It will be located in

C:\Program Files (x86)\Android\android-sdk

then execute "AVD Manager.exe" directly.

Upvotes: 0

default
default

Reputation: 11635

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.

Upvotes: 9

Gaensh
Gaensh

Reputation: 1

Assume you guys are using Windows OS check if you have set the path for Java, platform tools and tools in environment variables. Then logout and login once again. Generally in windows the environmental variables come into effect after that login

Upvotes: 0

Tang Chanrith
Tang Chanrith

Reputation: 1449

Normally the skin drop down list is nothing, so you need to choose a skin.

Upvotes: 0

AmanKapoor27
AmanKapoor27

Reputation: 957

you need to avoid spaces in the AVD name. Put underscore instead and the OK button will become active :)

Upvotes: 82

Amin
Amin

Reputation: 159

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!

Whenever I add a space in the AVD name, the "ok" button is disabled!

Upvotes: 14

Reive
Reive

Reputation: 51

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"

Upvotes: 5

Joshua Alger
Joshua Alger

Reputation: 2132

Looks like this is a bug reported since ADT 22.6. Please find more information in this post:

Cannot create or edit Android Virtual Devices (AVD) from Eclipse, ADT 22.6

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:

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.

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

Upvotes: 16

Related Questions