我是靠谱客的博主 柔弱钢笔,这篇文章主要介绍【Android bug】Could not find class 'android.graphics.drawable.RippleDrawable', referenced from.......,现在分享给大家,希望可以做个参考。

进入界面后卡死,回报这个错误:Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering。

查找了网上很多方法都不适用,最后发现是这行代码的问题:

itemLayout = itemView.findViewById(R.id.v_flag);

R.id.v_flag在布局中是View类型,而itemLayout 定义时是ConstraintLayout类型。类型不一致导致。

最后

以上就是柔弱钢笔最近收集整理的关于【Android bug】Could not find class 'android.graphics.drawable.RippleDrawable', referenced from.......的全部内容,更多相关【Android内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部