您的位置:首页 > 移动开发 > Android开发

解决android 报错: Resource is not a ColorStateList (color or path)

2016-11-24 09:48 543 查看
报错:

 Caused by: android.content.res.Resources$NotFoundException: Resource is not a ColorStateList (color or path): TypedValue{t=0x2/d=0x7f0100e8 a=2}

原因:

出现这样的问题一般都是在你的xml里报错的控件上style没写好,通常一般的原因是在style里没有写: parent="android:Theme" ,我的就是这个原因。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android xml
相关文章推荐