Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android can not find a target

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....

like image 857
EthanZ6174 Avatar asked Nov 04 '09 02:11

EthanZ6174


1 Answers

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.

like image 152
Pierre-Antoine LaFayette Avatar answered Sep 28 '22 04:09

Pierre-Antoine LaFayette