错误内容如下:
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
莫名其妙的错误,没有解决思路。于是上网搜索,参考了多个方案也没有解决问题。
解决如下:
把gradle的"compile fileTree(dir: 'libs', include: ['*.jar'])"
改成"provided fileTree(dir: 'libs', include: ['*.jar'])".