Hi, Although I haven’t worked with Android for quite a while, but It seems this topic is quite popular, so therefore I am “obliged” to post another Android blog.
In the AndroidManifest.xml file it is important to declare the correct <uses-sdk>. When developing Android applications, please note of the API level you are using in the development. The correct API level is determined during the creation of the project. API levels may have some issues when running the application. The API levels are declared in the <uses-sdk> of the AndroidManifest.xml.
Here’s an example:
This means that minimum API level to run this application is version 8 , which in this case is 2.2.x FROYO. This level should match the API level you set when the project is created. Then we should also indicate target API level, and in this example we set it to 18, which is 4.3 JELLY_BEAN_MR2. In this case target sdk is backward compatible to min sdk, and in this example, the application was deployed/tested in a API level 18 device.
Here’s the complete documentation from Google and the API level chart, In where we can see which version corresponds to it’s API level.
NOTE: A mistake in <uses-sdk> will cause some of your applications to crash and may not succeed in some test scenarios.