Question

I set my minimum API version to 8, but the android SDK fails to warn me when I use functions that were added in API 14. Why is that?

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="17" />
Was it helpful?

Solution

Right click on your project -> Android tools -> Run Lint.
The Lint tool will warn you. It also checks for incompleteness in your strings file etc.

OTHER TIPS

It's your minimum supported level, not minimum required. It's reasonable to want to support up to the latest API (or API 14 for example) and gracefully degrade certain features all the way down to API 8. You can include functionality from API levels higher than your minimum, and simply check the version code at run time, and go down different code paths as necessary.

Please check you project target,

Right click on project--> property --> android --> API 8 --> apply --> ok

Then clean and refresh the project, your problem will be solve..:)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top