加载图片报错You must not call setTag() on a view Glide is targeting

在前面加上这句清空就行imageView.setTag(null);


imageView.setTag(null);//需要清空tag,否则报错
           
Glide.with(context)
                    
.load(path)
                    
.placeholder(R.drawable.pictures_no)
                   
 .error(R.drawable.pictures_no)
                   
 .into(imageView);
       
     imageView.setTag(path);
 

猜你喜欢

转载自blog.csdn.net/zengkai19900512/article/details/84998035