在androidstuio中运行项目,报错:
Error:Execution failed for task ':heaterbluetooth:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_111\bin\java.exe'' finished with non-zero exit value 2
这个错误通常是由于有重复的引用library或者jar包引起的,去掉重复引用,并clean程序就可以解决