Unable to resolve target 'android-8'

眉间皱痕 提交于 2020-01-01 11:39:10

问题


Long story short, eclipse updated ADT & SDK to v20 , which I didn't like and wanted to get back to 18.

So I uninstalled ADT and SKD and donwloaded v18 from

http://dl.google.com/android/installer_r18-windows.exe

and http://dl.google.com/android/ADT-18.0.0.zip

Installed both of them, yet now Eclipse can't seem to find some sdk platform and throws the "Unable to resolve target 'android-8'" error... any ideas what might be wrong?


回答1:


in android sdk window go to:

tools >> options

will be open a new window and check the option force https:// ....

disable this checkbox

if your network is using proxy conigure it in this window too.

reload or restart the android sdk window and try download again. :)




回答2:


  1. Right click on project->properties.
  2. Select Android on left panel.
  3. If you see Android 4.0.3 in (Project Build Target), then tick it and click Apply button.
  4. If you don't have 4.0.3 version in Build Targets, then you should install it. to install simply go to sdk manager and click on Android 4.0.3(API 15)-SDK Platform.



回答3:


  1. Open "Android SDK Manager"
  2. Go to Menu: "Tools -> Options..."
  3. Press the button "Clear Cache"
  4. Press the button "Close"
  5. Close "Android SDK Manager" (not necessary!)
  6. In Eclipse, go to Menu: "Project -> Clean..." to refresh current project



回答4:


simple set your project's target sdk as shown in below screen shot



来源:https://stackoverflow.com/questions/13053353/unable-to-resolve-target-android-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!