Use ADT to develop a new Android app. Selecting the Supported SDK version number assumes that less than one (Android3.0) will report such as 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 simple terms, the new Eclipse default template theme UI needs to use the higher version API, assuming that you need to support the low version number, you need to import the Appcompact library to support it. The solution that is generally given on the Internet:
- File->import (ANDROID-SDK\EXTRAS\ANDROID\SUPPORT\V7). Choose "AppCompat"
- Project-> properties->android. In the section library "ADD" and choose "AppCompat"
included on StackOverflow There are also very many people encountered, but very many people through this solution. But I just can't solve it.
This was later found to be an eclipse bug. Suppose you refer to a library and your code is not in a drive letter, there is this exception .
My Code is on 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 are references to the same problem.
Theme.AppCompat.Light can't find the problem