You cannot start a load for a destroyed activity

https://github.com/bumptech/glide/issues/803

当你的图片还在loaidng, 或者你在asynctask里面的 post 里去 加载图片,当async 还在跑时, 你back, finish 了你的activity,那么就报错了。上面是解决方案。测试通过

你可以在你的doinbackground 让  thread sleep 1秒,然后就容易模拟crash情况了。

猜你喜欢

转载自ycljf86.iteye.com/blog/2288937