Skip to content Skip to sidebar Skip to footer

How To Change The Minsdk Version In Android Studio?

I am trying to get a basic hello world program running on my phone, however Android Studio keeps on reverting to minSDK level 20, when I specified 14. Here is the process I am usin

Solution 1:

The "L" Developer Preview is a special snowflake that breaks all the normal rules for version management. :-(

Unless you are an experienced Android developer specifically testing on "L", change compileSdkVersion to something like 19 (note: may require you to download the SDK Platform for API Level 19 from the SDK Manager) and change targetSdkVersion to 19.

Changing 'compileSdkVersion' to 14 results in an error, "failed to find target android-14".

You need to download the API Level 14 "SDK Platform" in the SDK Manager.

Solution 2:

try this:

android {
compileSdkVersion 20
buildToolsVersion "20.0.0"

defaultConfig {
    applicationId "com.example.victor.myapplications"
    minSdkVersion 14
    targetSdkVersion 20
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

If the target keep giving to you this problem try putting a lower version like CommonsWare said !

Post a Comment for "How To Change The Minsdk Version In Android Studio?"