使用的Android Studio 3.0.1版本,buildToolsVersion “26.0.2”
Debug模式运行App没有任何问题,但是打包的时候就不行了,报以下错误:
Error:Execution failed for task ':app:transformClassesWithDexForRelease'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments}
重新下载了SDK BuildTool 26.0.2 成功编译打包。