CacheDispatcher.java:99中的NegativeArraySizeException [英] NegativeArraySizeException in CacheDispatcher.java:99

查看:62
本文介绍了CacheDispatcher.java:99中的NegativeArraySizeException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

NegativeArraySizeException

NegativeArraySizeException

java.lang.NegativeArraySizeException: -1105
at com.android.volley.toolbox.d.a(DiskBasedCache.java:300)
at com.android.volley.toolbox.d.a(DiskBasedCache.java:115)
at com.android.volley.d.run(CacheDispatcher.java:99)

推荐答案

根据下面的链接,发生并行处理的情况是,当缓存调度程序线程执行Diskcache的get方法时,Android OS将删除缓存的文件进行清理.因为OS可以从缓存目录中删除缓存文件以回收空间."

As per the link below, "There is a parallelism happening that when cache dispatcher thread is executing get method of Diskcache, the cached file is deleted by the Android OS for clean up. As OS can delete cache files from cache directory to reclaim space."

https://groups.google.com/forum/#!topic/volley-users/0W-oI6za8VY

这篇关于CacheDispatcher.java:99中的NegativeArraySizeException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆