Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何使用volleyplus库下载文件_Android_Http Post_Android Volley - Fatal编程技术网

Android 如何使用volleyplus库下载文件

Android 如何使用volleyplus库下载文件,android,http-post,android-volley,Android,Http Post,Android Volley,我正在使用volleycom.android.volley:volley:1.1.0库发出正常请求,它工作正常。现在还需要下载一个pdf文件。为此,我需要使用volleyplusdev.dwworks.libs:volleyplus:+ 现在,由于我添加了重复的库,它给我的错误如下 任务“:app:transformDexArchiveWithExternalLibsDexMergerForDebug”的执行失败。 编译失败;有关详细信息,请参阅编译器错误输出 此外,在代码中找不到任何volle

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

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

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

此外,在代码中找不到任何volley类引用

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

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

一旦我发现这个错误。此错误表示项目中有重复的库,但版本不同。 例如:

    implementation 'com.squareup.retrofit2:retrofit:2.4.0'
    implementation 'com.squareup.okhttp3:okhttp:3.y.y'
我已经添加了“改装2”和“OkHttp3”,但在“改装”中已经包含了OkHttp3和3.x.x版本,但我添加的另一个OkHttp3不是3.x.x,而是3.y.y版本,所以它不同并且显示错误

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

请确保没有像这样的复制库,首先要使缓存无效,如果不起作用则重新启动

一旦我发现这个错误。此错误表示项目中有重复的库,但版本不同。 例如:

    implementation 'com.squareup.retrofit2:retrofit:2.4.0'
    implementation 'com.squareup.okhttp3:okhttp:3.y.y'
我已经添加了“改装2”和“OkHttp3”,但在“改装”中已经包含了OkHttp3和3.x.x版本,但我添加的另一个OkHttp3不是3.x.x,而是3.y.y版本,所以它不同并且显示错误

Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. Compilation failed; see the compiler error output for details.
请确保没有像这样的复制库