Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

I have created a project with following settings for Target :

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

But following error persists at values-v11 and values-v14:

ERROR : No resource found that matches the given 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>
like image 840
KiDa Avatar asked Sep 05 '13 08:09

KiDa


3 Answers

Assuming you're using Eclipse, you need to right-click your project in the Package Explorer, select Properties, select Android, and set Project Build Target to API level 14 or higher. Or equivalently, set target=android-14 or higher in your project's project.properties file, but note that this file is autogenerated by Eclipse, so manually editing it is not recommended.

like image 141
Adam Rosenfield Avatar answered Nov 18 '22 03:11

Adam Rosenfield


First there is problem in the parent attribute, you have to use parent="android:style/Theme.Holo.Light"

Second, Since Holo Theme was introduced in API level 14... so you have to change your android:minSdkVersion="8" to android:minSdkVersion="11", On newer versions it will automatically use Holo theme. You can further read about Holo Theme at

  • On Android Developers Blog
  • on Developers.Android.com

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

like image 3
Shajeel Afzal Avatar answered Nov 18 '22 02:11

Shajeel Afzal


TextAppearance.Holo.Widget.ActionBar.Title appears to have been added in API Level 13. Make sure your build target is set to 13, not just 11.

AndroidManifest.xml:

<uses-sdk
    android:minSdkVersion=...
    android:targetSdkVersion="11" />
like image 1
back track Avatar answered Nov 18 '22 04:11

back track