我使用了 ActionBar 样式生成器,现在尝试在我的应用中使用,但得到:
error: Error retrieving parent for item: No resource found that matches the given name '@style/ Theme.AppCompat.Light.DarkActionBar'.
我在 libs 文件夹中使用 android-support-v7-appcompat.jar lib
我的目标是让我的应用兼容 2.3 或更高版本
最佳答案
AppCompat
是一个库项目。你需要在你的android项目中引用库项目。
查看主题Adding libraries with resources .
更新
添加 Material 主题应该是方式。查看 https://material.io/develop/android/docs/getting-started了解更多详情。
关于android - 找不到资源 - Theme.AppCompat.Light.DarkActionBar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21900853/