58353

Android Studio 0.8.6: Failure [INSTALL_FAILED_OLDER_SDK]

Question:

Debugging my app with Android Studio 0.8.6, I get the error: "Failure [INSTALL_FAILED_OLDER_SDK]"

My build.gradle looks like this:

apply plugin: 'com.android.application' android { compileSdkVersion 'android-L' buildToolsVersion "20.0.0" defaultConfig { applicationId "com.example.bla.towerofhanoi" minSdkVersion 14 targetSdkVersion 'L' versionCode 1 versionName "1.0" } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile project(':third_party:andengine') }

Answer1:

Add <uses-sdk tools:node="replace" /> in your manifest file and sync project.

Answer2:

Check the doc at <a href="http://developer.android.com/preview/setup-sdk.html" rel="nofollow">http://developer.android.com/preview/setup-sdk.html</a>.

You have to use

minSdkVersion 'L'

and you have to run the app in device with Android-L or an emulator with Android-L. The build system when compileSdkVersion is 'android-L' or targetSdkVersion is 'L' forces the minSdk to 'L' to prevent apps published with the API in preview.

Recommend

  • how to filter android app to be downloaded from google play to specific device?
  • Can't resolve symbol 'Defaulthttpclient' and 'Httppost' in android
  • Could not find method implementation() for arguments [com.android.support:appcompat-v7:25.4.0] on ob
  • Dagger2 not generating Daggercomponent classes
  • Android app showing in Google Play for Phone but not for Google Play for Tablets
  • Android app working perfect in marshmallow and lollipop or nougat but it does not work in kitkat
  • You have not accepted the licenses arguments after run sdkmanager.bat --licenses - Android SDK
  • What do I need enable or install to get the annotation @RunWith
  • Android organizing layout resourse?
  • android.support libraries not compatible together after updation
  • App not compatible with Nexus 7 and Acer Iconia a210
  • Gradle Build Failure java.io.IOException: The output jar is empty
  • problems with 'com.android.support:appcompat-v7.27.1.1' in the gradle file
  • A larger heap for the Gradle daemon is recommended for running jack
  • Error ':app:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate
  • Neither user 10036 nor current process has android.permission.DEVICE_POWER.
  • Kafka Streams - How to scale Kafka store generated changelog topics
  • update google services from 9.0.0 to 10.0.1 Android studio 2.2
  • Default route for all extreme situations
  • Kotlin fails to compile a library
  • Dictionary with array of different types as value in Python
  • Execution failed for task : 'app.transformClassesWithDesugarForDebug'. after importing pro
  • How to use Android's AppCompat theming application-wide?
  • Dependency commons-logging:commons-logging:1.2 is ignored for debug as it may be conflicting with th
  • GCM push notification with C# asp.net giving null as notification in android devices
  • Ionic App On Android Tablet
  • Hide background image using Media Queries
  • RavenDB OrderByDescending and Take - Incorrect Results
  • How can I fast-forward a branch without checking it out
  • RegEx replacing IMG src attributes
  • Android Studio cannot find resources when building for device with version > 5.0
  • Proguard Exception java.io.IOException: Duplicate zip entry
  • Capturing STDOUT in RSpec
  • Quick Question About Get and Set
  • How to resolve permission denied maybe missing internet permission?
  • How to get current document uri in XSLT?
  • Bad request using file_get_contents for PUT request in PHP
  • SSO with signing and signature validation doesn't work
  • Deserializing XML into class C#
  • costura.fody for a dll that references another dll