Theme.AppCompat.Light can't find the problem

Source: Internet
Author: User

Using ADT to develop a new Android app, select the supported SDK version if less than one (Android3.0) will report the following error.

Error:error Retrieving parent for item:no Resource found that matches the given name ' Theme.AppCompat.Light '.

The answers given by the official website are:

Https://developer.android.com/tools/support-library/setup.html#add-library

In short, the new Eclipse default template theme UI needs to use a higher version of the API, if you need to support the lower version, you need to import the Appcompact library to support, the solution is generally given on the Web:

    1. File->import (ANDROID-SDK\EXTRAS\ANDROID\SUPPORT\V7). Choose "AppCompat"
    2. Project-> properties->android. In the section library "ADD" and choose "AppCompat"
There are a lot of people on the StackOverflow, but many people get through this, but I just can't solve it.
later found this is the eclipse bug, if you reference the library and your code is not a letter, there is this exception . My code is in the E-drive, Appcompact's library is in D, and I'll move it from the new to the E-drive OK. Fuck, waste a lot of time. There is a reference to the same problem.

Theme.AppCompat.Light can't find the problem

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.