Search

Wednesday, February 16, 2011

WARNING: Application does not specify an API level requirement in android

is your android application is crashing saying "The application has stopped unexpectedly" or getting above warning during compile time? this might come for variety of reason, its better to analyze the logcat to know the real reason for the issue

But most common reason why this warning or crash occurs is we should specify the API level for the application in manifest file this is because for some reason eclipse might not be able to generate that piece of line but we can add it manually

just add the below line in the manifest file before the end of manifest tag

<uses-sdk android:minSdkVersion=”3″ />

So what is API level?
it is a value that uniquely identifies the framework API revision offered by the android platform below is the table which specifies api level and platform versions

Platform VersionAPI Level
Android 2.3.310
Android 2.39
Android 2.28
Android 2.17
Android 2.0.16
Android 2.05
Android 1.64
Android 1.53
Android 1.12
Android 1.01

i think adding the above line of code in manifest file should eliminate the warning if for some reason warning continues to come may be your problem is something different and not related to API versioning.

0 comments:

Post a Comment

Other Interesting Articles



Related Article Widget by Yogith

Search Powered by Google