Error in v7 appcompat in themes v21

4

Recently I went to do a project clean in my project, and I do not know why it did not generate R.java , and my project was working normally.

So I had the brilliant idea to reinstall the SDK and Eclipse. And now I'm having problems with the new support library and I get these errors on the console:

  

C: \ ADT \ sdk \ extras \ android \ support \ v7 \ appcompat \ res \ values-v21 \ styles_base.xml: 75:   Error: Error retrieving parent for item: No resource found that   matches the given name 'android: Widget.Material.ActionButton'.

     c: \ ADT \ sdk \ extras \ android \ support \ v7 \ appcompat \ res \ values-v21 \ styles_base.xml: 138:   Error: Error: No resource found that matches the given name: attr   'android: overlapAnchor'.

     

// ....

Does anyone know how to solve it?

    
asked by anonymous 20.10.2014 / 13:24

4 answers

1

I had the same problem, I followed these Lubni steps

  • Right-click the support library;
  • Click Properties;
  • On the left side click on "Android";
  • Right-click "Android 5.0 - API 21" and click OK (I used 4.1.2);
  • Clean the support library;
  • In the same window, in library , clicked add and added appcompact and clicked applay .

        
    03.02.2015 / 00:13
    3

    I had the same problem and managed to resolve it as follows:

    1 - Right-click the support library; Home 2 - Click Properties; Home 3 - On the left side click on "Android"; Home 4 - Select on the right side "Android 5.0 - API 21" and click OK; Home 5 - Clean the support library;

    This error has not appeared any more.

    Hug.

        
    26.10.2014 / 21:57
    1

    I had this same problem as you, I spent many hours until I got it right. Test please.

    Update the entire SDK, the 21.0.2 build update also has Google Play Services updates. Update everything.

      In your workspace, delete the android-support-v7-appcompat and google-play-services_lib folders.

      >
    • Re-import these projects into the IDE and check to copy them to your workspace again.

    • ) ) p>
    • In your project, Properties Android , import the android-support-v7-appcompat and google-play-services_lib then Refresh and Build .

    31.10.2014 / 01:33
    0

    If you recently downloaded Android 5.0 (API 21), you should change your target in the file project.properties to target=android-21 .

        
    23.10.2014 / 20:21