Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens if the minSdkVersion is lower than the targetSdkVersion?

I am getting the warning:

Attribute minSdkVersion (3) is lower than the project target API level (8) 

How will this affect my app?

like image 248
Sheehan Alam Avatar asked Oct 12 '10 02:10

Sheehan Alam


People also ask

What is minSdkVersion and targetSdkVersion?

android:minSdkVersion — Specifies the minimum API Level on which the application is able to run. The default value is "1". android:targetSdkVersion — Specifies the API Level on which the application is designed to run.

What is the difference between compileSdkVersion and targetSdkVersion?

compileSdkVersion is the version of the compiler used in building the app, while targetSdkVersion is the "API level that the application targets".

What is the minimum sdk?

minSdkVersion is the minimum version of the Android operating system required to run your application. The Android app must have a minimum SDK version 19 or higher. If you want to support devices below API level 19, you must override minSDK version.


1 Answers

You can safely ignore the warning.

It's a weird warning - it means you are using tools for API level 8 (Android 2.2/Froyo) but targeting API level 3 (Android 1.5/Cupcake). That warning will always come up unless you you were using the SDK to target the Android release it coincides with - in this case, you would have to target Android 2.2 with your current SDK.

like image 107
逆さま Avatar answered Oct 05 '22 20:10

逆さま