简体   繁体   English

键入错误:检索项目的父项时出错:未找到与给定名称'android:Theme.Holo.Light'相匹配的资源。

[英]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. 在eclipse中导入我的Android项目时,出现以下错误。

Description Resource Path Location Type error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'. 说明资源路径位置类型错误:检索项目的父项时出错:未找到与给定名称'android:Theme.Holo.Light'相匹配的资源。 styles.xml /INU_app_new/res/values-v11 line 7 Android AAPT Problem styles.xml / INU_app_new / res / values-v11第7行Android AAPT问题

And this is the error source code. 这是错误的源代码。

style.xml 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' 找不到与给定名称“ android:Theme.Holo.Light”匹配的资源

No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar' 找不到与给定名称“ 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): 如果您在Eclipse中使用Gradle,还可以尝试在build.gradle设置值(针对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"
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:检索父项时出错:找不到与给定名称&#39;android:Theme.Holo.Light.DarkActionBar&#39;匹配的资源 - error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar' 找不到匹配给定名称'android:Theme.Holo.Light'的资源 - No resource found that matches the given name 'android:Theme.Holo.Light' 错误:检索项目的父项时出错:找不到与给定名称“android:Theme.Holo”匹配的资源 - error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo' 错误:检索项目父项时出错:找不到与给定名称&#39;android:Theme.DeviceDefault.Light&#39;相匹配的资源 - error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.DeviceDefault.Light' 键入错误:检索项目的父项时出错:未找到与给定名称&#39;Theme.AppCompat.Light&#39;匹配的资源。 styles.xml Android AAPT - Type error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml Android AAPT 键入错误:检索项的父项时出错:未找到与给定名称&#39;@android:style / Theme.Sherlock.Light&#39;相匹配的资源 - Type error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Sherlock.Light' 检索项目的父项时出错:找不到与给定名称匹配的资源&#39;@android:style / Theme.AppCompat.Light.DarkActionBar&#39; - Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.AppCompat.Light.DarkActionBar' Android studio错误检索项目的父项:找不到与给定名称“Theme.AppCompat.Light.DarkActionBar”匹配的资源 - Android studio Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar' 检索项目的父项时出错:找不到与给定名称“android:Theme.Material.Light”匹配的资源 - Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light' 检索项目的父项时出错:找不到与给定名称@ style / Theme.Holo匹配的资源 - Error retrieving parent for item:No resource found that matches the given name @style/Theme.Holo
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM