android can not find a target

后端 未结 4 1651
旧巷少年郎
旧巷少年郎 2020-12-31 06:38

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         


        
相关标签:
4条回答
  • 2020-12-31 06:52

    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.

    0 讨论(0)
  • 2020-12-31 06:57

    I restarted eclipse with "eclipse -clean" and this solved my problem.... I do not know if restarting also will solve the problem

    0 讨论(0)
  • 2020-12-31 07:02

    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

    0 讨论(0)
  • 2020-12-31 07:06

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

    0 讨论(0)
提交回复
热议问题