【发布时间】:2016-07-10 06:09:55
【问题描述】:
当我尝试将我的 libs2 文件夹中的任何 .jar 文件添加到我的 libs 文件夹时
我收到以下错误:
Information:Gradle tasks [:app:assembleDebug]
Warning:Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
Warning:Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
:app:preBuild UP-TO-DATE
.....
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources
:app:transformClassesWithDexForDebug
UNEXPECTED TOP-LEVEL EXCEPTION:
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_45\bin\java.exe'' finished with non-zero exit value 2
我知道 libs2 中的文件会导致错误,因为我会根据此人 suggestion 逐个添加它们并查看哪些会导致问题。
我正在关注tutorial,它需要所有这些 .jar 文件,所以我不明白为什么我会收到这些错误,因为它们是必要的。
【问题讨论】:
标签: java android dependencies