简体   繁体   中英

Type error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.

When I import my Android Project in eclipse, I have a following error.

Description Resource Path Location Type error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'. styles.xml /INU_app_new/res/values-v11 line 7 Android AAPT Problem

And this is the error source code.

style.xml

<!--
    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"> 
 //That is the error line.
    <!-- API 11 theme customizations can go here. -->
</style>

Any suggestion?

It seems to be that you duplicate an existing question, but nevermnid.

Here you would find how to fix your issue:

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

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

If you're usung Gradle in Eclipse you can also try to set the values in the build.gradle like this (updated for API 21):

android {
  compileSdkVersion 21
  buildToolsVersion "21.1.2"
  defaultConfig {
    minSdkVersion 21 //Depends on the min version you would like to support
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM