appcompat_v7: Error retrieving parent for item: No resource found that matches the given name

后端 未结 6 877
一整个雨季
一整个雨季 2020-12-10 03:23

I am trying to build the Android project that uses appcompat_v7 library.

For that, I created my project through Eclipse -> New Android Sample Project and added my cu

相关标签:
6条回答
  • 2020-12-10 03:38

    Try this: https://www.youtube.com/watch?v=HpXoCfoX_QY

    Also, make sure your "appcompat_v7" library is open and you see the folders.

    0 讨论(0)
  • 2020-12-10 03:43

    When using the the appcompat_v7 library the targetSdkVersion should be the same number as the major Android Support Library version number. E.g. on my SDK installation the version number is 23.0.1 and so my targetSdkVersion should be 23 (Android 6.0)

    0 讨论(0)
  • 2020-12-10 03:54

    Check Build Target of your project and appcompat_v7 library project. They should be same, if your project has lesser Build Target than you get this error and won't be able to build.

    To fix the problem in Eclipse go to Project->Properties->Android (Project Build Target) and select equal to your appcompat library project.

    0 讨论(0)
  • 2020-12-10 03:57
    1. Right Click on the supporting library;
    2. Click on Properties;
    3. On the left side click on "Android";
    4. Select the right "Android 5.0 - API 21" and click OK;
    5. Clean the support library: Project -> Clean;

    Repeat the above steps for your project.

    0 讨论(0)
  • 2020-12-10 04:00

    Check if Android Support Library and Android SDK Build-tools and Android SDK Platform-tools are updated. I updated Android Support Library and not Build-tools and this error appeared. After updating Build-tools it solved.

    0 讨论(0)
  • 2020-12-10 04:03

    I just ran into a similar issue when upgrading appcompat-v7 from 22.2.0 23.1.0. Updating compileSdkVersion to 23 fixed it.

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