3

For some reason, I cannot create an AVD. I went through AVD Manager - Cannot Create Android Virtual Device and attempted the solutions, and I also fiddled with the different settings in the manager, including changing the name to Device. I made sure that the system images are installed, and I followed the instructions for using the Intel Atom. Why is the OK greyed out?

Picture of the AVD Manager's "create new avd" that shows all the settings that are set

I even ran the AVD Manager from eclipse, from the exe, and from monitor.bat

For reference, I did install the Atom's image:

enter image description here

Community
  • 1
  • 1
Justin
  • 24,288
  • 12
  • 92
  • 142
  • What operating system are you using? – ChuongPham Apr 06 '14 at 02:19
  • @ChuongPham Windows 8.1 – Justin Apr 06 '14 at 02:46
  • The RAM option should be okay then. Tried changing some of the other options, for example, VM Heap to 64, or even 128. Also, I'm assuming you have installed the Intel image successfully. Lastly, change, or add, these options to `eclipse.ini` file -Xms64m -Xmx512m. Again, change `-Xms` value to 128 if required. These options give Eclipse a bit more grunt. – ChuongPham Apr 06 '14 at 02:52
  • @ChuongPham Do I need to change those options before or after creating the AVD? Because I changed them in the AVD Manager and the OK button is still greyed out. And changing which CPU/ABI I use (ARM or Intel) doesn't un-grey it. – Justin Apr 06 '14 at 02:54
  • It shouldn't matter. But if it does not work when you tried to modify it, then delete the AVD definition and re-create it. Also, I forgot to mention that if you change the `-Xms` and `-Xmx` directives, you'll need to restart Eclipse. – ChuongPham Apr 06 '14 at 02:58
  • @ChuongPham I've re-done the AVD Definition many times (~4 times) – Justin Apr 06 '14 at 02:59
  • Also, I don't know if you know, but you MUST have exactly the same versions for both Android SDK and ADT. For example, if you have Android SDK v22.6.2, you must also have ADT v22.6.2. Mismatch versions can lead to many unforseen problems with Android. Also, Android currently does not support JDK v7. The best available, supportable JDK version is 1.6.45. – ChuongPham Apr 06 '14 at 03:03

2 Answers2

1

For some reason, running the AVD via command line worked, but I couldn't check Use Host GPU. Thanks to Rusher who got this from https://stackoverflow.com/a/22213144/1896169 . See Running Your App | Android Developers for instructions on running via command line:

From the command line, change directories to <sdk>/tools/ and execute:

android avd

In other words, typing this into command line should work:

cd whateverThePathToYourSDKIs/tools/

android avd

enter image description here

Community
  • 1
  • 1
Justin
  • 24,288
  • 12
  • 92
  • 142
0

You can only use either Snapshot or Host GPU.

Snapshot or Host GPU they can not be used simultaneously.

now try to start avd from avd manager.