Alex Rivera | Logout

ERROR: Application requires API version 14. Device API version is 13 (Android 3.2.1)

Asked 2012-01-02T09:34:39.233
11

I am following a tutorial for creating a simple application in Android, and compiling it with Eclipse on Linux.

The problem is that when I first created the project, I used the target API 14. But my tablet only has API 13, so I have changed it in project > properties > android to API 13. Even though I still get next the error:

ERROR: Application requires API version 14. Device API version is 13 (Android 3.2.1)

Why is this happening if I have changed the compilation target?

Edit
Report

3 Answers

6

Use as below or remove the entire line for auto detection of API level

<uses-sdk android:minSdkVersion="13"/>
answered 2012-01-02T09:41:53.627
5

Here is an useful explanation of versioning in Android. Basically android enforces the system compatibility as expressed by the minSdkVersion in the manifest.

android:minSdkVersion — The minimum version of the Android platform on which the application will run, specified by the platform's API Level identifier.

answered 2012-09-10T11:18:50.500
3

One thing to note. Be sure after you have made this change that you "Clean" your project and recompile or it will not take effect.

answered 2012-11-12T19:43:47.353

Your Answer