What does "Failure [INSTALL_FAILED_OLDER_SDK]" mean in Android Studio?
After I changed
defaultConfig { applicationId "com.example.bocheng.myapplication" minSdkVersion 15 targetSdkVersion 'L' #change this to 19 versionCode 1 versionName "1.0"}
in build.gradle
file.
it works
This error
Failure [INSTALL_FAILED_OLDER_SDK]
Means that you're trying to install an app that has a higher minSdkVersion
specified in its manifest than the device's API level. Change that number to 8
and it should work. I'm not sure about the other error, but it may be related to this one.
Besides checking the right minSdkVersion
in build.gradle
, make sure you have installed all necessary tools
and correct SDK Platform
for your preferred Android Version in SDK Manager
. In Android Studio klick on Tools -> Android -> SDK Manager. Then install at minimum (for Android 2.2 without emulator):
- Android SDK Tools
- Android SDK Platform-tools
- Android SDK Build-tools (latest)
- Android 2.2 (API 8)
- SDK Platform
- Google APIs
This is what worked for me.