tags:

views:

927

answers:

2

I have installed Android SDK on my MAC OS X 10.6 and facing lots of problem while creating AVD.

  1. When I tried to create it for ECLIPSE (3.5 Gallelio) then after clicking the 'new' button, when I try to type a name there comes a message bellow saying 'a target must be selected in order to create an AVD'. But the problem is, the Target field is deactivated.
  2. If I'm trying to create AVD from terminal with the command './android avd --target 2 --name my_avd' it shows an error saying 'Error: Expected verb after global parameters but found 'avd' instead.'

I don't understand what to do right now. Can anybody help me in this regard please??

Thanks

+2  A: 

You have the command line wrong. You need to add create to it. Try the following:

android create avd --target 2 --name my_avd
Dave Webb
+3  A: 

First you have to specify the Android SDK installation folder to the Eclipse Android plugin. Go to Preferences -> Android and set it. After that you have to install the target versions you want to develop against.

Go to AVD Manager -> Available Packages and download the targets that you need. After that you should be able to create your AVD. If you still have problems, try restarting Eclipse because that solved some issues for me a number of times.

If you still have problems try reading the Troubleshooting Tips.

Bobby
Thanks ... it helped :)
Eishita