我已经研究这个问题几个小时了。从 github 下载存储库后,任何 .xml 文件中的唯一错误是:
No resource found that matches the given name '@style/Theme.AppCompat.Light'
该代码非常简单,但我没有找到关于如何减轻错误的简单答案。
这是代码(在文件 res/values/styles.xml 中):
<style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light">
<!-- API 14 theme customizations can go here. -->
</style>
该项目位于:https://github.com/erikswed/InstaChatX https://github.com/erikswed/InstaChatX我在 Windows 上,使用 Eclipse Kepler
具体步骤是什么? AppCompat 位于哪里?
在此处下载支持库:
http://developer.android.com/tools/support-library/setup.html http://developer.android.com/tools/support-library/setup.html
如果您使用的是 Eclipse:
转到顶部的选项卡并选择(Windows -> Android SDK Manager)。在“附加”部分下,选中“Android 支持库”并检查是否安装。
之后,可以在以下位置找到 AppCompat 库:
android-sdk/extras/android/support/v7/appcompat
您需要在 Android 项目中引用此 AppCompat 库。
将库导入到 Eclipse 中。
- 右键单击您的 Android 项目。
- 选择属性。
- 单击底部的“添加...”以添加库。
- 选择支持库
- 清理并重建您的项目。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)