[英]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.