Android Studio Error Error retrieving parent for Item:no Resource found that matches the given name ' ANDROID:TEXTAPPEARANCE.M Aterial. Inverse '

Source: Internet
Author: User

Using Android Studio to create a project, I chose the phone and tablet platform, the Minimum SDK chose API 9, and the minimum support is Android 2.3,

Next. Surprise appeared, reported a bunch of Error retrieving parent for item:no Resource found that matches the given name ' Android:TextAppearance.Materia L.inverse ' ...

It means you can't find a style, look at the error message with a line like this:

~/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.0/res/values-v21/values-v21.xml

The problem is Build-tools 23.0.0, this error should be caused by build-tools incompatibility, there are two workarounds:

1. Change the minimum SDK to 4.0, which will not support the lower version of the system.

2. Change the build-tools to 20.0.0. Open SDK Manager, download Build-tools 20.0.0,

Then modify the App/build.gradle in the following two lines of content is 20.0.0:

Buildtoolsversion "20.0.0"
Compile ' com.android.support:appcompat-v7:20.0.0 '
After the sync project, the error disappears and is fixed!

Android Studio Error Error retrieving parent for Item:no Resource found that matches the given name ' ANDROID:TEXTAPPEARANCE.M Aterial. Inverse '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.