2015-12-10 28 views
1

当我在eclipse中导入我的Android项目时,出现以下错误。类型错误:错误检索的项目父:没有资源发现在给定的名字“机器人:Theme.Holo.Light”匹配。

说明资源路径位置类型 错误:检索项的父项时出错:找不到与给定名称'android:Theme.Holo.Light'匹配的资源。 styles.xml/INU_app_new/RES /值-V11线7的Android AAPT问题

这是错误的源代码。

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> 

什么建议吗?

回答

0

这似乎是可以复制现有的问题,但nevermnid。

在这里你会找到如何解决您的问题:

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'

如果您在Eclipse是usung摇篮,你也可以尝试在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" 
} 
+1

我已经找到了答案。 API编号是错误的。但是,非常感谢您的建议。 – user5666418

相关问题