我是靠谱客的博主 淡定白昼,这篇文章主要介绍BitmapDrawable cannot be cast to android.graphics.drawable.AnimationDrawable解决办法,现在分享给大家,希望可以做个参考。

错误提示:

java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable cannot be cast to android.graphics.drawable.AnimationDrawable

最后找到Activity的代码,

原来drawable的资源放错啦,应该是drawable下面的xml的名字,改为

就可以啦。

drawable的目录结构。


最后

以上就是淡定白昼最近收集整理的关于BitmapDrawable cannot be cast to android.graphics.drawable.AnimationDrawable解决办法的全部内容,更多相关BitmapDrawable内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(47)

评论列表共有 0 条评论

立即
投稿
返回
顶部