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

后端 未结 24 1445
孤城傲影
孤城傲影 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条回答
  •  再見小時候
    2020-11-22 03:18

    Your compile SDK version must match the support library major version. This is the solution to your problem. You can check it easily in your Gradle Scripts in build.gradle file. Fx: if your compileSdkVersion is 23 your compile library must start at 23.

      compileSdkVersion 23
        buildToolsVersion "23.0.0"
        defaultConfig {
            minSdkVersion 15
            targetSdkVersion 23
            versionCode 340
            versionName "3.4.0"
        }
    dependencies {
        compile 'com.android.support:appcompat-v7:23.1.0'
        compile 'com.android.support:recyclerview-v7:23.0.1'
    }
    

    And always check that your Android Studoi has the supported API Level. You can check it in your Android SDK, like this:

提交回复
热议问题