我是靠谱客的博主 柔弱钢笔,最近开发中收集的这篇文章主要介绍【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 bug】Could not find class 'android.graphics.drawable.RippleDrawable', referenced from.......所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复