Android Studio Not Working while building App using AppCompat v23 and API21

后端 未结 2 1053
遥遥无期
遥遥无期 2021-01-20 00:47

I am using Android 1.3 version and SDK for 5.0.1 I decrepeted it because whenever I build project it throws error.

Can anyone please tell in detail

相关标签:
2条回答
  • 2021-01-20 01:14

    You have to update your SDK to the API 23 (in case you are compiling with 23).
    compileSdkVersion, and Support Libraries version should be same. The below code indicate that these are same as at line 3 and 2nd line in dependencies.

    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 23
        buildToolsVersion "23.0.0"
    
        defaultConfig {
            applicationId "com.example.inzi.app"
            minSdkVersion 9
            targetSdkVersion 23
            versionCode 1
            versionName "1.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.support:appcompat-v7:23.0.0'
    }
    
    0 讨论(0)
  • 2021-01-20 01:33

    You are using the appcompat (and other support libraries) v23 .
    You have to compile your project with API 23.

    Change in your build.gradle the compileSdkVersion to 23

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