【问题标题】:Volley cannot create cache directory. Could not clean up fileVolley 无法创建缓存目录。无法清理文件
【发布时间】:2013-08-12 22:19:22
【问题描述】:

以下是我看到的凌空记录。它说无法创建缓存目录,以及无法清理文件。可能的原因或解决方法是什么?

08-12 15:14:43.150: E/Volley(3868): [11] DiskBasedCache.initialize: 无法创建缓存目录 /volley 08-12 15:14:45.732: D/Volley(3868): [15] DiskBasedCache.put: 无法清理文件 /volley/12341768-824258

【问题讨论】:

    标签: android android-volley


    【解决方案1】:

    您是否将android.permission.READ_EXTERNAL_STORAGEandroid.permission.WRITE_EXTERNAL_STORAGE 添加到您的清单中?

    【讨论】:

    • 应用有 WRITE_EXTERNAL_STORAGE
    【解决方案2】:

    Could not clean up file 也有类似的问题。我通过使用 Volley 的 NetworkImageView 而不是 ImageView 解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2013-10-05
      • 2015-01-02
      • 2015-10-21
      • 2020-03-17
      • 1970-01-01
      • 2020-02-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多