Android Studio 3.0.1 packed in a pit
Using the Android Studio 3.0.1 version, buildtoolsversion "26.0.2"
Debug mode does not have any problems running the app, but it will not work when packaged, and report the following error:
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 {--dex--num-threads=4--multi-dex--main-dex-lis T E:\Android\code\FTS6\app\build\intermediates\multi-dex\release\maindexlist.txt--output E:\Android\code\FTS6\ App\build\intermediates\transforms\dex\release\0--min-sdk-version E:\Android\code\FTS6\app\build\ Intermediates\transforms\jarmerging\release\0.jar}
Search on the internet many times without fruit, and finally think of themselves in the use of Eclipse, Replaced the Dx.jar package (as to why the replacement, but also because the eclipse is not very compatible with the latest SDK reasons), fortunately before the replacement before they have a backup, restore back, pack it up again, the pit of their own tread, record
Error:execution failed for task ': App:transformclasseswithdexforrelease '