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

时间:2022-11-21 12:25:05

报错:

 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" ,我的就是这个原因。