在编译时,我得到错误:“检索项目的父项时出错:找不到与给定名称‘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>
提前感谢!
发布于 2014-05-14 21:49:49
您需要将AppCompat导入工作区,并将其作为库项目引用。你可以从Android SDK管理器中获得它。
https://stackoverflow.com/questions/23656498
复制相似问题