Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run Eclipse project - can't find API database

My code compiles. There is no errors in code. I downloaded full SDK. On run I get this error:

Can't find API database; API check not performed        

And it's in Location: line 1, type Android Lint Problem.

I have no idea whats wrong.

like image 718
F1sher Avatar asked Apr 05 '14 01:04

F1sher


3 Answers

I have solved it differently. In manifest I had:

    <uses-sdk
        android:minSdkVersion="9"
        android:targetSdkVersion="19" />

The problem was that after installation of new Eclipse ADT, in "Android SDK Manager" I didn't have any SDK Platform installed, so I have installed API 19 SDK Platform & Documentation & Sources.

I would also install API 9, but for some reason it is missing in SDK Manager.

Anyway, after this I have edited the android:minSdkVersion="10" -> SAVE -> again changed to android:minSdkVersion="9" -> SAVE

...and the problem was gone.

like image 56
BartoszK Avatar answered Nov 23 '22 11:11

BartoszK


I fixed it. In manifest I had in uses-sdk minSdkVersion specified but I didn't have targetSdkVersion. After addition of the targetSdkVersion parameter it compiled and ran.

like image 25
F1sher Avatar answered Nov 23 '22 10:11

F1sher


  • go to your Manifest
  • click on Uses Sdk
  • change Min SDK version to 9 or something else and press ctrl+s (save)
  • error should disappear now
  • change Min SDK version back to your original value

That solved it for me.

like image 44
Sharky Avatar answered Nov 23 '22 11:11

Sharky