android.content.res.Resources$NotFoundException: Resource is not a ColorStateList (color or path): T
来源:互联网 发布:天龙八部mac版 编辑:程序博客网 时间:2024/06/05 23:05
把Activity改为了AppCompatActivity后一运行就报错
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.okoer/com.okoer.core.activity.impl.SplashActivity}: android.content.res.Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020014Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020014
把Activity改为了AppCompatActivity后一运行就报错,在stackOverFlow查了半天说在gradle增加如下配置:
android { defaultConfig { vectorDrawables.useSupportLibrary = true } }
但是不好使,最后发现是Theme配置问题,之前全屏在manifest中配置了
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
自定义一个style
<style name="AppTheme.NoActionBar"> <item name="windowNoTitle">true</item> <item name="windowActionBar">false</item> <item name="android:windowFullscreen">true</item> <item name="android:windowContentOverlay">@null</item></style>
关于Vectors:
http://blog.csdn.net/lyhhj/article/details/50735791
以后学习下
0 0
- android.content.res.Resources$NotFoundException: Resource is not a ColorStateList (color or path): T
- android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedVa
- android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path)
- android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedV
- Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or pat
- android.content.res.Resources$NotFoundException: Resource is not a Drawable
- 已解决_Android_Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (
- 关于android.content.res.Resources$NotFoundException: Resource is not a Drawable 问题的解决办法
- 解决android 报错: Resource is not a ColorStateList (color or path)
- android.content.res.Resources$NotFoundException:Resource ID #0x7f080004 type #0x12 is not valid问题解决
- android.content.res.Resources$NotFoundException: Resource ID #0x7f09000a type #0x12 is not valid
- Android: android.content.res.Resources$NotFoundException: Resource ID #0x7f030009
- android:android.content.res.Resources$NotFoundException: String resource ID #..
- android.content.res.Resources$NotFoundException: Resource ID #0x7f030010
- android.content.res.Resources$NotFoundException: String resource ID #0x6d
- android.content.res.Resources$NotFoundException:String resource ID #0x86
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- iOS 闪退,程序杀死处理
- Google ProtocolBuffers2.4.1应用说明
- java验证码
- upload to app Atore 错误信息汇总
- HDU OJ-1084 数塔
- android.content.res.Resources$NotFoundException: Resource is not a ColorStateList (color or path): T
- GOOGLE PROTOBUF开发者指南
- DatabasePopulator详解
- App架构经验总结
- POJ 3928-Ping pong(树状数组+加/乘法原理)
- HDU 5438 Ponds(BFS+拓扑排序)【2015亚洲区长春站网赛B】
- 闪电精灵SEO 打破百度快速排名规则
- 设置了width:100%,移动设备上宽度还是现实不正确
- POJ 3974 Manacher 模板题