No resource found matching the given name 'android: Theme.Holo.Light'

I created a project with the following settings for Target:

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18" /> 

But the following error persists with v11 and values-v14:

ERROR: resource not found that matches the name 'android: Theme.Holo.Light'

 <resources> <!-- Base application theme for API 11+. This theme completely replaces AppBaseTheme from res/values/styles.xml on API 11+ devices. --> <style name="AppBaseTheme" parent="android:Theme.Holo.Light"> <!-- API 11 theme customizations can go here. --> </style> </resources> 
+8
android
source share
4 answers

TextAppearance.Holo.Widget.ActionBar.Title seems to be added to API level 13. Make sure your build target is set to 13, not just 11.

AndroidManifest.xml:

 <uses-sdk android:minSdkVersion=... android:targetSdkVersion="11" /> 
+2
source share

Assuming you are using Eclipse, you need to right-click your project in the Package Explorer, select Properties , select Android and set the Project Build Target to API level 14 or higher. Or, which is the same thing, set target=android-14 or higher in the project.properties project file, but note that this file is automatically generated by Eclipse, so manual editing is not recommended.

+29
source share

First, a problem occurs in the parent attribute, you should use parent="android:style/Theme.Holo.Light"

Secondly, since the Holo theme was introduced at API level 14 ... so you need to change android:minSdkVersion="8" to android:minSdkVersion="11" , and in new versions it will automatically use the Golo theme. You can also read about Holo's topic

However, if you want to support previous Android versions for Holo Themes. You can use the Holoeverywhere library .

+3
source share

you can click “Properties” of this project and click “Android”, select the target name for your target project.

0
source share

All Articles