Failure [INSTALL_FAILED_OLDER_SDK] Android Studio
Unless you know you want to be using the Android L developer preview with your application, do not target and compile with it. It is still very much a preview release, and it appears as though applications targeting and compiling for the preview cause this error with any non-L device.
Update these lines in your build.gradle to stick with the latest stable release (Android 4.4, API 19):
android {
compileSdkVersion 19
defaultConfig {
targetSdkVersion 19
}
}
Failure [INSTALL_FAILED_OLDER_SDK] Android-L
Recently there was a post here regarding the L SDK's incompatibility
with prior versions of Android. I've been digging in AOSP repositories
for quite a few hours now, and determined that the tools behave this
way because they are designed to treat preview platforms differently.
If you compile against a preview SDK (android-L), the build tools will
lock minSdkVersion and targetSdkVersion to that same API level. This
results in the produced application being unable to be installed on
devices running older releases of Android, even if your application
isn't doing anything specific to L. To make matters worse, the new
support libs (CardView, RecyclerView, Palette, etc.) are also locked
into the L API level, even though--according to their repository
names--they should work on API level 7 just fine (and they do!).
See my Reddit post about this here, with a workaround.
Failure [INSTALL_FAILED_OLDER_SDK] in Android Studio
You need to make sure your dependencies are configured targeting the same sdk (also make sure the sdk is supported for the dependency).
As of version .11, the gradle plugin now uses the new manifest merger tool by default which you can use to avoid conflicting configurations when merging manifests from your dependencies while building by specifying <uses-sdk tools:node="replace" />
in your AndroidManifest.xml file.
http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger
credit goes to Eddie Ringle
Failure [INSTALL_FAILED_OLDER_SDK] in Android Studio?
I think you change minSdkVersion
21 to minSdkVersion
8 in Manifest
Change it in your Gradle
defaultConfig {
applicationId "mindmine.com.welcometol"
minSdkVersion *<Put yoru min SDK here>*
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
Related Topics
Android.View.View.Systemuivisibility Deprecated. What Is the Replacement
Textinputlayout Not Showing Edittext Hint Before User Focus on It
Android Animation Does Not Repeat
Android Vector Drawable App:Srccompat Not Showing Images
Firebase Cloud Messaging Notification Not Received by Device
Get Focused View from Viewpager
How to Get the Current Location in Google Maps Android API V2
Android Studio - Creating Modules Without Copying Files
List All the Files from All the Folder in a Single List
Align Text Around Imagespan Center Vertical
How to Change Bitmap Image Color in Android
Getting a Photo from a Contact
Google Glass Gdk: How to Communicate with Android Device
Confusion on Yuv Nv21 Conversion to Rgb
Android:Select Image from Gallery Then Crop That and Show in an Imageview