报错:
Error:UNEXPECTED TOP-LEVEL ERROR:
Error:java.lang.OutOfMemoryError: GC overhead limit exceeded
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> 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-list E:\android\Projects\WisomApp\app\build\intermediates\multi-dex\debug\maindexlist.txt --output E:\android\Projects\WisomApp\app\build\intermediates\transforms\dex\debug\folders\1000\1f\main E:\android\Projects\WisomApp\app\build\intermediates\transforms\jarMerging\debug\jars\1\1f\combined.jar}解决:
在app的build.grade文件里面的Android{
dexOptions { javaMaxHeapSize "4g" }
}