Error: minSDK (API27) deviceSDK (API23)


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: ''

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

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation ''
    implementation ''
    testImplementation 'junit:junit:4.12'
    androidTestImplementation ''
    androidTestImplementation ''
asked by Jhon Hernández 13.09.2018 в 01:04

1 answer


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