首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何修复mac版本的android eclips‘检索项目的父项错误:找不到与给定名称'Theme.AppCompat.Light’匹配的资源?

如何修复mac版本的android eclips‘检索项目的父项错误:找不到与给定名称'Theme.AppCompat.Light’匹配的资源?
EN

Stack Overflow用户
提问于 2014-05-14 21:46:48
回答 1查看 256关注 0票数 1

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

代码语言:javascript
复制
<!--
    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>

提前感谢!

EN

回答 1

Stack Overflow用户

发布于 2014-05-14 21:49:49

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23656498

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档