问题LOG:
Warning:Dependency org.apache.httpcomponents:httpclient:4.5.1is ignoredfordebug as it may be conflicting with the internal version provided by Android.
Incaseof problem, please repackage it with jarjar to change theclasspackages
Warning:Dependency org.apache.httpcomponents:httpclient:4.5.1is ignoredfordebug as it may be conflicting with the internal version provided by Android.
Incaseof problem, please repackage it with jarjar to change theclasspackages
Warning:Dependency org.apache.httpcomponents:httpclient:4.5.1is ignoredfordebug as it may be conflicting with the internal version provided by Android.
Incaseof problem, please repackage it with jarjar to change theclasspackages
Warning:Dependency commons-logging:commons-logging:1.2is ignoredfordebug as it may be conflicting with the internal version provided by Android.
Incaseof problem, please repackage it with jarjar to change theclasspackages
Warning:Dependency org.apache.httpcomponents:httpclient:4.5.1is ignoredfordebug as it may be conflicting with the internal version provided by Android.
Incaseof problem, please repackage it with jarjar to change theclasspackages
Warning:Dependency commons-logging:commons-logging:1.2is ignoredfordebug as it may be conflicting with the internal version provided by Android.
Incaseof problem, please repackage it with jarjar to change theclasspackages
Warning:Dependency org.apache.httpcomponents:httpclient:4.5.1is ignoredforrelease as it may be conflicting with the internal version provided by Android.
Incaseof problem, please repackage it with jarjar to change theclasspackages
Warning:Dependency org.apache.httpcomponents:httpclient:4.5.1is ignoredforrelease as it may be conflicting with the internal version provided by Android.
Incaseof problem, please repackage it with jarjar to change theclasspackages
Warning:Dependency org.apache.httpcomponents:httpclient:4.5.1is ignoredforrelease as it may be conflicting with the internal version provided by Android.
Incaseof problem, please repackage it with jarjar to change theclasspackages
Warning:Dependency commons-logging:commons-logging:1.2is ignoredforrelease as it may be conflicting with the internal version provided by Android.
Incaseof problem, please repackage it with jarjar to change theclasspackages
Warning:Dependency org.apache.httpcomponents:httpclient:4.5.1is ignoredforrelease as it may be conflicting with the internal version provided by Android.
Incaseof problem, please repackage it with jarjar to change theclasspackages
Warning:Dependency commons-logging:commons-logging:1.2is ignoredforrelease as it may be conflicting with the internal version provided by Android.
Incaseof problem, please repackage it with jarjar to change theclasspackages
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Lorg/apache/commons/codec/Decoder;
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 'D:\Program Files\Java\jdk1.8\bin\java.exe'' finished with non-zero exit value 2
解决办法:
在app路径下的build.gradle中,在dependencies {compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
} 中添加添加这个试下,我的就解决了