Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/190.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何修复安卓eclips的mac版本';检索项的父项时出错:未找到与给定名称匹配的资源';Theme.AppCompat.Light';?_Android_Styles_Android Appcompat - Fatal编程技术网

Android 如何修复安卓eclips的mac版本';检索项的父项时出错:未找到与给定名称匹配的资源';Theme.AppCompat.Light';?

Android 如何修复安卓eclips的mac版本';检索项的父项时出错:未找到与给定名称匹配的资源';Theme.AppCompat.Light';?,android,styles,android-appcompat,Android,Styles,Android Appcompat,编译时出现错误:“检索项的父项时出错:未找到与给定名称“Theme.AppCompat.Light”匹配的资源。”。mac上project.properties中的路径应该是什么?该代码在Windows计算机上运行良好 <!-- Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on new

编译时出现错误:“检索项的父项时出错:未找到与给定名称“Theme.AppCompat.Light”匹配的资源。”。mac上project.properties中的路径应该是什么?该代码在Windows计算机上运行良好

<!--
    Base application theme, dependent on API level. This theme is replaced
    by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">  <-- Error at line 7
    <!--
        Theme customizations available in newer API levels can go in
        res/values-vXX/styles.xml, while customizations related to
        backward-compatibility can go here.
    -->
</style>

<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
    <!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>



提前谢谢

您需要将AppCompat导入工作区并作为库项目引用。您可以从Android SDK管理器获得它。

我已经导入了所有必要的库,我在别处读到的是,在mac上,它需要是相对路径,而不是绝对路径。但我不知道该放什么。这就是它现在所说的:#项目目标。target=android-19 android.library.reference.1=../appcompat_v7打开项目的属性并以这种方式添加库项目。它将自动设置路径。