Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call requires API level 11 (current min is 1)

Tags:

android

I just removed the support library (I will support only one device, of API level 15) and my code runs fine after cleaning of the project. However, when I only touch the file in which I use getFragmentManager(), I get this Lint error.

Weird thing is that I have minSdkVersion in my manifest set to 15:

<uses-sdk
        android:minSdkVersion="15"
        android:targetSdkVersion="18" />

I searched for this error, but all it says basically is to clean lint markers or clean the project. Which works, but only just one time.

Update it is even worse. If I don't clean, but just resave the file, the errors add up. I started with 6 errors, I have 24 now....

like image 617
Bart Friederichs Avatar asked Oct 22 '13 14:10

Bart Friederichs


2 Answers

I have fixed this way

Select File -> Invalidate Caches / Restart -> Invalidate and Restart.

like image 123
Hassan Ashraf Avatar answered Sep 27 '22 17:09

Hassan Ashraf


I am facing the same issue. I clean and build the project multiple times, but getting this issue again and again. I clean and build the project and then restarted the eclipse. It is working fine for me now.

like image 33
Neelam Avatar answered Sep 27 '22 19:09

Neelam