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

后端 未结 24 1757
孤城傲影
孤城傲影 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:20

    As pointed out by Tanis.7x, the support library version (23) does not match the targetSdkVersion (22)

    You can fix this by doing the following:

    In the build.grade file of your app module, change the following line of code

    compile 'com.android.support:appcompat-v7:23.0.0'
    

    To

    compile 'com.android.support:appcompat-v7:22.+'
    

    This will use the latest version of the appcompat version that is compatible with SdkVersion 22.

提交回复
热议问题