Appcompat_v7/res/values-v21/themes_base.xml No Resource found that matches the given name

Source: Internet
Author: User

He died today.

Delete the appcompat_v7 in the workspace, and then create a new project, because it has been upgraded to 5.0, APPCOMPAT_V7 content has changed,

The previous project quoted some properties of the old appcompat_v7 that could not be found in the new.

Churn for two hours, the workaround is as follows:

Project.Properties in target=android-21 meaning must be 5.0来 compiled

Create a new MIN-SDK less than 14 project A, there will be appcompat_v7 generated

Copy the contents of the style in the corresponding values directory in a to the original project style.

Clean again, basic solution.

If some unused system style still has an error, delete it

If some of the referenced system pictures, color, or not, change one, or delete


----------------------------------------New Discoveries------------------------------------

The new project, because it references a style of 5.0, so target needs to be equal to 21.

If you want to use target<20, you cannot refer to the 5.0 style and remove the 5.0 style definition referenced by Res.

Change the theme of application in Manifest.xml, such as Android:theme= "@android: Style/theme.black"

----------------------------------------about the processing of Android studio------------------------------------

Like eclipse, to compile 5.0 and above, build and build tools are above api-21

Appcompat_v7/res/values-v21/themes_base.xml No Resource found that matches the given name

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.