Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23

后端 未结 24 1354
孤城傲影
孤城傲影 2020-11-22 02:30

I\'ve always programmed Android with Eclipse and decided to start migrating to Android Studio. I decided to use the same SDK I already had for Eclipse, then:

  • S
24条回答
  •  -上瘾入骨i
    2020-11-22 03:13

    I wanted to downgrade from API 23 to 22 and got this error. I had to change all build.gradle files in a project in order to compile.

    android {
        compileSdkVersion 22
        buildToolsVersion "22.0.1"
    
        defaultConfig {
            applicationId "com.yourapp.app"
            minSdkVersion 14
            targetSdkVersion 22
        }
    ...
    dependencies {
        compile 'com.android.support:appcompat-v7:22.2.1'
        compile 'com.android.support:support-v4:22.2.1'
        compile 'com.android.support:design:22.2.1'
        compile 'com.google.android.gms:play-services-gcm:10.0.1'
    }
    

提交回复
热议问题