解决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" ,我的就是这个原因。
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.content.res.Resources$NotFoundException: Resource is not a ColorStateList (color or path): T
- Android 程序运行崩溃:Resource is not a drawable (color or path)
- android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedV
- 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)
- Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or pat
- Android之Error: 'L' is not a valid file-based resource name character解决办法
- Android Error:main cannot be resolved or is not a field 问题解决方法
- ANDROID_HOME is not set and "android" command not in your PATH解决
- Class is not a root resource. It, or one of its interfaces must be annotated with @Path:
- bower install 错误 git is not installed or not in the PATH 解决方法
- android.content.res.Resources$NotFoundException:Resource ID #0x7f080004 type #0x12 is not valid问题解决
- irectory_list cannot be resolved or is not a field问题的解决办法
- The resource is not on the build path of a java project解决方法
- Bower : ENOGIT git is not installed or not in the PATH解决方法
- android中如何解决“main cannot be resolved or is not a field”
- Bower执行报错解决方法 : ENOGIT git is not installed or not in the PATH
- 导入android工程后出现The resource is not on the build path of a java project
- 解决"Bower : ENOGIT git is not installed or not in the PATH"问题
- Android中cannot be resolved or is not a field错误的解决办法