INSTALL_FAILED_OLDER_SDK error Android Studio

Many time we fail to run android application to phone or emulator and get  INSTALL_FAILED_OLDER_SDK  error in logcat .

To remove this just go to build.gradle file and change required minimum sdk value

apply plugin: 'com.android.application'

    android {
        compileSdkVersion 22
        buildToolsVersion "22.0.1"

        defaultConfig {
            applicationId "com.rbricks.hello.androidstudioapplication"
            minSdkVersion 9
            targetSdkVersion 22
            versionCode 1
            versionName "1.0"
        }
...
...
...
Previous
Next Post »