views:

2336

answers:

3

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 targets
   Available Android targets:

what should i do?

and..............

when i try to install the available packages in eclipse avd manage it comes to:

Downloading SDK Platform Android 2.0 API5, revision1 SSL peer shutdown incorrectly....

+12  A: 

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.

Pierre-Antoine LaFayette
thx, i fixed it in this way ;)
EthanZ6174
A: 

Which release has the targets?

Fernando
A: 

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

Matt