Android 带有多索引的传统Apache HttpClient

Android 带有多索引的传统Apache HttpClient,android,apache,Android,Apache,正如所回答的,当我们瞄准安卓M时,我们可以使用以下内容来构建我们的项目:usebrary'org.apache.http.legacy' 这有助于构建我们应用程序的调试版本。但是,当尝试使用Proguard构建发布版本时,我们从gradle得到以下错误: What went wrong: Execution failed for task ':shrinkXXX5ReleaseMultiDexComponents'.> java.io.IOException: The output jar

正如所回答的,当我们瞄准安卓M时,我们可以使用以下内容来构建我们的项目:
usebrary'org.apache.http.legacy'

这有助于构建我们应用程序的调试版本。但是,当尝试使用Proguard构建发布版本时,我们从gradle得到以下错误:

What went wrong:
Execution failed for task ':shrinkXXX5ReleaseMultiDexComponents'.> java.io.IOException: The output jar [/Users/.../projects/XXX/build/intermediates/multi-dex/XXX/release/componentClasses.jar] must be specified after an input jar, or it will be empty.
显然,遗留http客户端和multidex存在一些问题。有人能解决这个问题吗


我们使用
compile'com.android.support:multidex:1.0.1'
multiDexEnabled true
作为我们的发布版本

您的错误应该只是最终结果,请尝试查找上面提到原因的行并在此处发布