IllegalArgumentException: You must not call setTag() on a view Glide is targeting
在Glide加载图片时出现的这个问题
解决方案:
1.在\res\values\文件夹下创建ids.xml文件
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="id" name="tag_glide" />
</resources>
2.在项目中创建Application类
在 super.onCreate();方法下
ViewTarget.setTagId(R.id.tag_glide);
3.在配置文件中注册Application。