错误Error “You must not call setTag() on a view Glide is targeting” when use Glide
2018-01-04 21:42
465 查看
参考自:http://blog.csdn.net/ltym2014/article/details/51558695
报错原因大致是因为Glide加载的iamgeView调用了setTag()方法导致的错误,
因为Glide已经默认为ImageView设置的Tag。
然后在/values/ids.xml加上
项目中在使用Glide图片加载框架是遇到如下错误
You must not call setTag() on a view Glide is targeting
报错原因大致是因为Glide加载的iamgeView调用了setTag()方法导致的错误,
因为Glide已经默认为ImageView设置的Tag。
解决办法:自定义一个Application,在里面加上
public class App extends Application { @Override public void onCreate() { super.onCreate(); ViewTarget.setTagId(R.id.glide_tag); } }
然后在/values/ids.xml加上
<resources> <item type="id" name="glide_tag" /> </resources>
相关文章推荐
- Error “You must not call setTag() on a view Glide is targeting” when use Glide
- You must not call setTag() on a view Glide is targeting when use Glide
- 关于You must not call setTag() on a view Glide is targeting错误处理
- Glide加载图片遇到的错误:You must not call setTag() on a view Glide is targeting
- You must not call setTag() on a view Glide is targeting的解决方案
- java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
- You must not call setTag() on a view Glide is targeting
- Gilde刷新图片闪烁和You must not call setTag() on a view Glide is targeting如何解决
- “You must not call setTag() on a view Glide is targeting” 解决
- You must not call setTag() on a view Glide is targeting的解决方案
- Glide Exception:"You must not call setTag() on a view Glide is targeting"
- You must not call setTag() on a view Glide is targeting
- java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
- java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting
- Glide异常:java.lang.IllegaliArgumentException:You must not call setTag() on a view Glide is targeting
- Fragment使用时出现错误:he specified child already has a parent. You must call removeView() on the child's p
- You must call removeView() on the child's parent first错误!
- Python sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings......
- The specified child already has a parent. You must call removeView() on the child's parent first.
- The specified child already has a parent. You must call removeView() on the child's parent first.