问题
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:
- Right click on project->properties.
- Select Android on left panel.
- If you see Android 4.0.3 in (Project Build Target), then tick it and click Apply button.
- 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:
- Open "Android SDK Manager"
- Go to Menu: "Tools -> Options..."
- Press the button "Clear Cache"
- Press the button "Close"
- Close "Android SDK Manager" (not necessary!)
- 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