报错信息为:You must not call setTag() on a view Glide is targeting
原因就是使用setTag后导致Glide强制转换中将ImageView类型不能判断为Request类型所致。
在Glide源码中可追溯:
if (tag instanceof Request) { request = (Request) tag; } else { throw new IllegalArgumentException("You must not call setTag() on a view Glide is targeting"); }
时间: 2025-01-05 21:40:42