Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to resolve target 'android-8'

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?

enter image description here

like image 1000
Roger Travis Avatar asked Oct 24 '12 16:10

Roger Travis


3 Answers

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

like image 103
ademar111190 Avatar answered Oct 14 '22 07:10

ademar111190


  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.
like image 22
MojAmiri Avatar answered Oct 14 '22 07:10

MojAmiri


  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
like image 32
Zäta Avatar answered Oct 14 '22 08:10

Zäta