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:
- File->import (ANDROID-SDK\EXTRAS\ANDROID\SUPPORT\V7). Choose "AppCompat"
- 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