Android关于Theme.AppCompat相关问题 No resource found that matches the given name

No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'

如果出现这个问题,是ADT编译器和SDK 版本问题导致的,简单解决办法就是不用这个样式库

解决方案

此时的解决方法有如下几种:

既然没有找到Theme.AppCompat.Light主题,那么我就不使用此主题。

此时将项目values,values-v11,values-v14目录下的styles.xml文件里面的style都改为

<resources>
    <style name="AppBaseTheme" parent="android:Theme.Light"></style>
    <style name="AppTheme" parent="AppBaseTheme"></style>
</resources>

如果非要用 请查看这篇文章 我也转自这里 

原文地址:http://www.jianshu.com/p/6ad7864e005e

移动前端开发交流群 339033019

猜你喜欢

转载自blog.csdn.net/qq_18709863/article/details/84298244