【问题标题】:How to download file using volleyplus library如何使用 volleyplus 库下载文件
【发布时间】:2019-03-01 01:41:35
【问题描述】:

我正在使用 volley com.android.volley:volley:1.1.0 库来发出正常请求,它工作正常。现在还需要下载一个pdf文件。为此,我需要使用 volleyplus dev.dworks.libs:volleyplus:+

现在,由于我添加了重复的库,它给了我类似的错误

任务“:app:transformDexArchiveWithExternalLibsDexMergerForDebug”执行失败。 编译失败;有关详细信息,请参阅编译器错误输出。

在代码中也找不到任何 volley 类引用。

那么,如何实现两者的功能呢? 没有任何类型的图像缓存相关要求。

【问题讨论】:

    标签: android http-post android-volley


    【解决方案1】:

    首先 => 使缓存无效,如果不起作用则重新启动

    一旦我发现这个错误。此错误意味着您的项目中有重复的库但版本不同。 如:

        implementation 'com.squareup.retrofit2:retrofit:2.4.0'
        implementation 'com.squareup.okhttp3:okhttp:3.y.y'
    

    我已将“Retrofit2”和“OkHttp3”一起添加,但在“Retrofit”中已包含带有 3.x.x 版本的 OkHttp3,但我添加的另一个 OkHttp3 不是 3.x.x 而是 3.y.Y 版本,因此它有所不同并显示错误

    Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. Compilation failed; see the compiler error output for details.
    

    请确保没有像 Dependency tree 这样的重复库

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-10
      相关资源
      最近更新 更多