android - CacheDispatcher.java :99 中的 NegativeArraySizeException

标签 android android-volley

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 操作系统删除以进行清理。因为操作系统可以从缓存目录中删除缓存文件到回收空间。”

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

关于android - CacheDispatcher.java :99 中的 NegativeArraySizeException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26290804/

相关文章:

java - 膨胀 fragment Google map API 时出错

java - 将对象添加到 JSONObj

android - 在 logcat 中监控 startActivity

android - 单击 fragment 后显示条形图

android - Volley 发送 POST 参数始终为空

java - 每次调用函数时如何获取当前 gps 位置?

java - 当我尝试从一种 Intent 转向另一种 Intent 时,我正在开发的应用程序崩溃了,我已经尝试了一切。代码 :

java - 接收双引号内的 JSON 响应

java - Android Volley 访问 http 响应头域

java - 发送带有负载 Volley 的 GET 请求