i am using eclipse with android plugin and sdk, but i can not create a virtual device due to there is no target, and when I execute this:
$ ./android list
Run tools/android to retrieve targets. It'll load up a gui interface, under settings check the box that says force https to be fetched using http. Then go to Available packages and select the version of Android you want. The targets are not downloaded by default in the latest sdk release.
At least that's what you get on windows, I don't have a linux machine available at the moment but the tools/android tool was created to manage targets and avds.
I restarted eclipse with "eclipse -clean" and this solved my problem.... I do not know if restarting also will solve the problem
You need to run the android application and tell it to fetch the sources from the Android repositories. See this post for an explanation: http://techpad.co.uk/content.php?sid=96
I had the same issue and had to go to Eclipse > Window > Preferences > Android to set the Android SDK location (C:\Program Files\Android\android-sdk in my case).