Android应用图片偏多,在长时间使用后出现卡顿、闪退,查看错误日志:
“java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack available”
“java.lang.OutOfMemoryError: Failed to allocate a 28 byte allocation with 0 free bytes and 3GB until OOM” 诸如此类
这个错误不是必然出现,不同手机出现频率也不同,查看统计发现小米三星手机,android5.0及以上系统出现偏多
引用来自“snowdream”的评论
可以尝试下facebook的方案: https://github.com/facebook/fresco