在此错误之前,我的所有应用程序都运行良好,但是当我突然开始新项目时,它在我的 appcompat 中显示错误,而在我的项目中,在 android 依赖项的构建路径中显示错误。请给我一些解决方案,我应该怎么做. 并且还让我更清楚地了解 android 依赖项和 appcompat 库文件。 它显示此错误:-
appcompat_v7/res/values-v21/themes_base.xml:194: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
appcompat_v7/res/values-v21/themes_base.xml:195: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
appcompat_v7/res/values-v21/themes_base.xml:193: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
appcompat_v7/res/values-v21/themes_base.xml:190: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
appcompat_v7/res/values-v21/themes_base.xml:191: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
谢谢
最佳答案
我的错误终于解决了,但这并不是我想要的确切解决方案。我做了什么我已经创建了一个新项目并采用了最小 sdk 版本是 15 bcoz 操作栏功能存在于 15 和进一步的 api 中。我认为该功能在 11 api 中引入。所以我采用了最小 sdk 版本的新项目然后没有现在需要 appcompat 库,不会出现错误... 但我通过替代解决方案解决了这个问题,但我也想回答我的问题。
关于android - 当我使用新的 android 项目时,appcompt 显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26675627/