0

I do not find an answer. help!

I can not emulate my app that I get the error title .. all my information from the device and project is as follows:

Choose Device:

samsung GT-19300 Android 4.3(API 18) ---> No, minSdk(API 20) > deviceSdk(API 18)

build.gradle:

android {
    compileSdkVersion 22
    buildToolsVersion "23.0.0 rc3"
    defaultConfig {
        applicationId "app.bluezone.win"
        minSdkVersion 20
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }

AndroidManifest.xml:

<uses-sdk android:minSdkVersion="20" android:targetSdkVersion="22"/>

What should I do?

Limon Monte
  • 52,539
  • 45
  • 182
  • 213

2 Answers2

0

Instead of changing the minSdkVerison & targetSdkVersion in build.gradle

Just open the Manifest file and use this

<uses-sdk 
android:minSdkVersion="17" 
android:targetSdkVersion="21"/>

Ref : Android Studio : Failure [INSTALL_FAILED_OLDER_SDK]

Community
  • 1
  • 1
NovusMobile
  • 1,813
  • 2
  • 21
  • 48
0

Can you please try with below code

   android {
    compileSdkVersion 22
    buildToolsVersion "23.0.0 rc3"
    defaultConfig {
        applicationId "app.bluezone.win"
        minSdkVersion 17
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }

also remove sdk stuff from manifest file

<uses-sdk 
android:minSdkVersion="17" 
android:targetSdkVersion="21"/>