How to Solve Failure [INSTALL_FAILED_OLDER_SDK]

I just used android studio to develop, and there was such an error when running the program

Failure [INSTALL_FAILED_OLDER_SDK]

Solution: Check the build.gradle file:

apply plugin: ‘com.android.application’

android {
    compileSdkVersion 21
    buildToolsVersion "22.0.0"


    defaultConfig {
        applicationId "com.aitwx.tab"
        minSdkVersion 19
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}


dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.3'
}

It is found that minSdkVersion is 19, and the mobile phone version I installed is lower than 19, so an error is reported, which can be modified to 8.

Similar Posts: