Installation error: INSTALL_FAILED_OLDER_SDK

前端 未结 19 1519
太阳男子
太阳男子 2020-11-28 09:37

I am new to Android development and I want first to get the Hello World application running. I am using Eclipse IDE and the Android 4.0.3 version 15 SDK. I copi

相关标签:
19条回答
  • 2020-11-28 09:59

    Mate, my advice is to change virtual device. Download "Genimotion" application, its easy to use and there are a lot of any devices you need

    0 讨论(0)
  • 2020-11-28 09:59

    I've changed my android:minSdkVersion and android:targetSdkVersion to 18 from 21:

    uses-sdk android:minSdkVersion="18" android:targetSdkVersion="18" 
    

    Now I can install my app successfully.

    0 讨论(0)
  • 2020-11-28 10:00

    Make sure to check your build.gradle and that it doesn't use a newer SDK version than what is installed on your AVD. That's only if you use Android Studio though.

    0 讨论(0)
  • 2020-11-28 10:01

    Go in your project's build.cradle file and add

    defaultConfig {
        minSdkVersion versions.minSdk
    

    }`

    This makes it that your application conforms to the minimum SDK your device is running.

    0 讨论(0)
  • 2020-11-28 10:02

    If the error "Installation error: INSTALL_FAILED_OLDER_SDK" appears, you must change the version of minSdkVersion in AndroidManifest to the one specified in the android emulator: see Settings -> About phone -> Android version.

    0 讨论(0)
  • 2020-11-28 10:04

    Fix for new Android 6.0 Marshmallow Fixed my issue when I updated to API 23 (Android 6.0 Marshmallow) by updating the build tools version to 23.0.0 as follows:

    android {
        buildToolsVersion '23.0.0'
    ...
    

    And went to File > Project Structure , chose Properties tab then updated the Compile Sdk version to "API 23: Android 5.X (MNC)" and the Build tools version to "23.0.0"

    0 讨论(0)
提交回复
热议问题