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

StackOverflow https://stackoverflow.com/questions/21532873

  •  06-10-2022
  •  | 
  •  

Domanda

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.

È stato utile?

Soluzione

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.

Altri suggerimenti

I think this is a Lint rule triggered only by the current version of the tools (likely this is something that was added, of the severity was changed in the rule-set).

You can disable this rule in the Lint Perspective, or by right-clicking on it from the Android XML editor.

Not sure what the actual fix is (hopefully someone will answer) - this will silence it, so your build works (but you should really fix the original problem).

Check your Android manifest file. When this happened to me there were obvious errors in the file.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top