Monday, January 5, 2015

How To Solve A Failure [INSTALL_FAILED_OLDER_SDK] When Using Android Studio

There are some times when even though you KNOW what to do, you forget some small detail that causes you to waste time. When building Android projects, you know to add the minimum supported version to your manifest file. Well when using Android Studio to create Android projects, Gradle ignores your manifest file. This can make for a little bit of head-scratching as you are trying to figure out why your newly created project isn't running as you expected.

If you get the following error:

Failure [INSTALL_FAILED_OLDER_SDK]

Look build.gradle file for your app and change the following :

defaultConfig {
        applicationId "com.example.test.myapplication1"
        minSdkVersion 15
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }

Notice the highlight. You are going to change minSdkVersion to a version that matches your target test device. Issue solved!

Smooches!
Kila