Error: minSDK (API27) deviceSDK (API23)

2

Hi, I'm using version 3 of Android Studio, I had a lot of problems but I could make a program work, now I'm creating another one, but I get this error: minSDK (API27) > deviceSDK (API23) the weird thing is that I changed the values several times, but nothing works for me.

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.example.jhon.pasardatosentreactivities"
        minSdkVersion 27
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
    
asked by Jhon Hernández 13.09.2018 в 01:04
source

1 answer

0

The error message:

  

minSdk (API 27) > device Sdk (API 23)

indicates that your device, whether emulator or physical, has an Android 6.0 operating system (API 23) and in the definition of your project you are defining API 27 as the minimum version , therefore it will not be possible to install the application.

 minSdkVersion 27

You can change this value to:

minSdkVersion 23

so that the application can work on your device.

For more information related to minSdkVersion , check this answer

Doubt about APIs and Android versions: minSdkVersion

    
answered by 13.09.2018 / 01:08
source