Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files (x86)\Java\jdk1.8.0_91\bin\java.exe'' finished with non-zero exit value 2
决定写一串异常错误信息,编号从001开始~
这个错误很清晰,是重复加载jar造成的。比如我的:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile project(':netlibrary')
compile files('libs/rxjava-1.1.0.jar')
}
去掉:
compile fileTree(include: ['*.jar'], dir: 'libs')
最后是:
dependencies {
testCompile 'junit:junit:4.12'
compile project(':netlibrary')
compile files('libs/rxjava-1.1.0.jar')
}
就好了~