9

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>
KiDa
  • 233
  • 1
  • 3
  • 10

4 Answers4

29

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.

Adam Rosenfield
  • 390,455
  • 97
  • 512
  • 589
  • 2
    Clean and build after the above, if necessary. – hBrent Aug 07 '14 at 23:10
  • I had to do this with an older project that wasn't updated using Android Studio and the Gradle build system. There was an external library (Fabric-Twitter) that required `@android:style/Theme.Material.Light`. Setting the value `target=android-21` within the `project.properties` file resolved the issue. – PeqNP Jan 17 '15 at 01:06
3

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

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

Shajeel Afzal
  • 5,913
  • 6
  • 43
  • 70
1

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" />
back track
  • 209
  • 1
  • 6
0

you can Click Properties of this project and click Android,chose Target Name byond you aim project.

song
  • 1