"This template requires a minimum SDK version" -Android Eclipse ADT plugin reports wrong min SDK.

Hari Krishna Ganji picture Hari Krishna Ganji · Feb 3, 2014 · Viewed 9.3k times · Source

I just imported my old Android Project that I just checkout from my git repo.

When I try to create a new Master/Detail Flow Activity using Eclipse :

New > Android > Android Activity > Login Activity > Next 

The Eclipse reports me error saying :

This template requires a minimum SDK version of at least 3, 
and the current min version is 1

Where as my actual entries in my AndroidManifest.xml is :

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

Can someone tell me what am I missing here?

I am using Android SDK Tools of version 23.2 and Android SDK Platform-Tools version 19.0.1.

Answer

Hari Krishna Ganji picture Hari Krishna Ganji · Feb 3, 2014

Looks like Eclipse does this when you refactor your code that affects entries in your AndroidManifest.xml.

So, before doing anything else Close your eclipse project from workspace and open the project again by double clicking it. This will force Eclipse to reinitialize your project and will also run Lint & Other checks.

If this doesn't work, try any of the above things suggested by other users.