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

87,909

Solution 1

THIS IS A POSSIBLE WORKAROUND FOR BUGS IN ADT 22.6.0 ONLY, THESE BUGS SUBSEQUENTLY FIXED IN FOLLOWING BUILDS

Download and install new ADT v22.6.1 from here (zip) or use SDK manager to update

Seems like some bug from Google side, this problem found after "ADT 22.6" update. Widely reported on "Android Open Source Project - Issue Tracker" and nobody properly answered it yet.

However I was partially successful to create an AVD by opening "AVD manager.exe" from "Android SDK" for creating new AVD try to open directly AVD Manager.exe in SDK folder.

May be we have to wait for any conformation from Android community

Worked for me, sort of.. .

(Windows 8.1 Pro 64 Bit, Java JDK 1.7 Update 25, Eclipse Standard Kepler Service Release 1, Android Development Toolkit 22.6.0.v201403010043-1049357)

Update 1

Further research revealed that launching AVD Manager from SDK Manager (Tools --> Manage AVDs...) also works without any problems.

Update 2

More bad news is AVD creation not working from command line tool too.

Update 3

Assuming some parameter passed during launching AVD manager from Eclipse causes these problems

Update 4

Updated Java to JDK 1.7 Update 51 and Eclipse Standard SDK to Kepler Service Release 2 their latest and no resolution to the problems. Also tested under Debian and same results obtained.

Update 5

At https://code.google.com/p/android/issues/detail?id=66661 android project members conforms the problems and promises to fix by upcoming versions of ADT (22.6.1 - 22.6.3). At the mean time I would suggest to roll-back ADT to a lower version version 22.3.0

To uninstall current ADT go to

Help --> About Eclipse --> Installation Details --> Android Development Tools --> Uninstall

I may suggest uninstalling whole packages from Android (DDMS, Hierarchy Viewer, NDT, Traceview, OpenGL ES..etc..) to avoid any possible compatibility issues and install a fresh new ADT from above link through archive installation method.

Hope this will solve this problem temporarily. And wait for new release of ADT here.

Update 6

New ADT, version 22.6.1 is out now which will solve these problems

Solution 2

To elaborate on the statement "I can create/edit AVDs if I run the AVD manager from outside eclipse" in the OP:

Run the following on the command line

<android-sdk-location>/tools/android avd (on Linux in this case)

This launches the same AVD window you see when you click the AVD Manager icon in the eclipse toolbar. But this instance of the AVD manager does not have the bug, and you can create and run emulators as you did before the bug was introduced.

Solution 3

1 minute solution

I used a quick workaround where I cloned a device that already existed. The Clone button worked and I was able to successfully edit the clone.

Steps:

Select a Device by Google

enter image description here

Click the "Clone..." button

enter image description here

A window will pop up, click "Clone device"

dddd

Select the newly cloned Device, it should say "... by User"

enter image description here

Click the "Edit" button on the side

enter image description here

There you have it, you now have your own custom virtual device

enter image description here

Solution 4

Update and Solution: AsYashwanth Krishnan said, The bug in question is now fixed in later versions. I tried ADT 222.6.1 and ADT 22.6.2 , and they did not suffer from the bug of not not being able to create or edit Android Virtual Devices. The direct solution is to update you ADT to latest version, The workaround written below is left only for historical purposes.

Historical Workaround As @Yashwanth Krishnan said, this is a bug in ADT plugin 22.6; so best workaround is to rollback. for those asking how to rollback, here is a step-by-step guide:

First: Uninstall ADT plugin and all related plugins for android: help->about enter image description here Installation details enter image description here Select android plugins and press uninstall button enter image description here enter image description here enter image description here enter image description here Restart

Second: Download ADT 22.3.0 Archive from https://dl.google.com/android/ADT-22.3.0.zip

and install it enter image description here add repository from archive on local disk enter image description here enter image description here enter image description here Select android plugins enter image description here

Share:
87,909
BarleyWarb
Author by

BarleyWarb

Updated on July 08, 2022

Comments

  • BarleyWarb
    BarleyWarb almost 2 years

    This problem sounds similar to a few others, except in my case the OK button is not grey-ed out. But for those who would rather not click the links...

    Trying to create or edit an AVD from within Eclipse, after entering my settings, the "OK" button seems to be "clickable", but when I click it absolutely nothing happens. clickable but useless

    I've made sure I have the appropriate system images installed, and that the target platform matches the API being used. Clearly a CPU has been chosen, skin set, etc... all the things that would make the OK button greyed out, which it's not.

    I can create/edit AVDs if I run the AVD manager from outside eclipse, so this isn't the end of the world, but I feel there's a solution to this particular problem and I want to help solve it.

    I've tried running eclipse as an administrator (that's what stopped the AVD manager from crashing outside of eclipse). I've tried just waiting around, or clicking multiple times. Looking at the Task Manager, no new processes begin when I click OK, nor does eclipse's CPU or RAM usage increase at all. The "Edit Android Virtual Device" window doesn't even go away.

    Any clues?

    (Running Indigo with the ADT plugin, btw, not the bundled version, which failed to work in a different way. Java 1.6.0 45. Windows 8, unfortunately. Plenty of RAM etc)

  • sherpya
    sherpya about 10 years
    even worse java segfaults lol, but fortunately it's able to create the avd
  • Saad Qureshi
    Saad Qureshi about 10 years
    I just got this bug after updating my ADT to 22.6 version. However my problem is solved now by this simple remedy :)
  • Stéphane Bourzeix
    Stéphane Bourzeix about 10 years
    OK so this is actually working, to create the AVD. But still the AVD won't start....
  • MidnightJava
    MidnightJava about 10 years
    I had the same problem as well. I reduced the size of internal and external storage allocated in the emulator, and then I got it to start. I have 1024 MiB for internal storage and sdcard, and 1024 for RAM (what the units are I don't know—it doesn't say)
  • MidnightJava
    MidnightJava about 10 years
    And sometimes it takes a very long time to start. Make sure you give it a long time if you think it's still failing to start.
  • JZH
    JZH about 10 years
    Got the WORKAROUND from google as below : WORKAROUND: In Eclipse, open the SDK Manager (via toolbar or Window menu) > Tools > Manager AVDs. This will invoke the external version of the AVD Manager which will properly generate AVDs. Other workaround: use the command-line version (Shell or cmd.exe, cd SDK, "tools\android.bat avd") . But I did not do the testing , so just FYI.
  • wes
    wes about 10 years
    This solution works for me also. If nothing else, at least we can still test on PC. It's just an inconvenience
  • Sufian
    Sufian about 10 years
    Any way I could roll back? I'm on OSX and I don't have the archive of ADT 22.3
  • 김준호
    김준호 about 10 years
    Opening from 'Tools' menu in SDK Manager also worked for me as well. Glad to solve the issue, but so weird.
  • Jeremiah Me
    Jeremiah Me about 10 years
    i have encounter same problem . how can i roll back may ADT ?
  • Jeremiah Me
    Jeremiah Me about 10 years
    @yashwanth Krishnan i got this error when i try to create a AVD help pls---No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.adt,22.3.‌​0.v201310242005-8878‌​26
  • Yash Krishnan
    Yash Krishnan about 10 years
    @JeremiahMe Are you sure you got this error when trying to create an AVD or during archive installation itself ? However for the second case this may work Help > Install New Software Uncheck "Contact all update sites during install to find required software" Reply your result
  • Shaon Hasan
    Shaon Hasan about 10 years
    lol..ya takes time!!. But doesn't mean half of the day!!. Cant open AVD from eclipse. Can create from AVD manager in sdk dir. :-(
  • Shaon Hasan
    Shaon Hasan about 10 years
    and other things like: Android SDK Tools 22.6 & Android SDK platform-tools 19.0.1. Any way to rollback to old versions? :( ..issues are killing me. i have project to submit. :''(
  • Yash Krishnan
    Yash Krishnan about 10 years
    @ShaonHasan Did you try everything ?
  • Shaon Hasan
    Shaon Hasan about 10 years
    ya..tried everything that came to my mind. Like first thing i did was ADT setup from archive. Than, trying to work with old SDK bundle. But its eclipse is telling me to update SDK tool. Another problem is i cant create AVD from eclipse & i can using AVD manager but with AVD manager i cant run it. I know it takes time but not like 2 hrs?!! Now plz advice me how to start my setups from the beginning. Ill follow that and let u know whether i succeeded or not.
  • Shaon Hasan
    Shaon Hasan about 10 years
    @yashwanth-krishnan : Please help me with my problem. stackoverflow.com/questions/22490207/…
  • Sydwell
    Sydwell about 10 years
    Issue sorted! by upgrading to 'Android SDK tools' 22.6.1 in 'Android SDK Manager' and then don't forget to 'Check for Updates' in ADT Eclipse.
  • Abdul Wahab
    Abdul Wahab about 10 years
    @Brother, I am having same issue, uninstalled the 22.6.. but before installing new means. 22.3... eclipse closed hastily... now its not opening due to error eclipse executable launcher unable to locate campanian shared library... what can I do ?
  • MuhammadAnnaqeeb
    MuhammadAnnaqeeb about 10 years
    @AbdulWahab Can you post a new question on Stackoverflow with snaphots of the error and error log file located in eclipse directory and more details of what happened?
  • MuhammadAnnaqeeb
    MuhammadAnnaqeeb about 10 years
    @AbdulWahab If you do not have a lot of customization in eclipse and you use it only for android development, you go go back fast to development by downloading and extracting adt-bundle from android developer website. Adb-bundle consists of eclipse with adt and sdk preinstalled on it, from here: developer.android.com/sdk/index.html
  • Jason Southwell
    Jason Southwell almost 10 years
    This appears to be back in 22.6.4
  • dmohr
    dmohr almost 10 years
    I've got 22.6.4 and the solution above is not working.
  • Zhianc
    Zhianc over 9 years
    uhm, how do I find my ADT version?
  • Yash Krishnan
    Yash Krishnan over 9 years
    To know ADT version, go to Help --> About Eclipse --> click on the android icon