I get a lot of these errors: Copy error :. If this helps, I create an application with over 200 activities

: application: incrementalDebugTasks: application: prePackageMarkerForDebug: application: fastDeployDebugExtractor: application: generateDebugInstantRunAppInfo: application: coldswapKickerDebug: application: transformClassesWithInstantRunSlicerForDebug: application: transformClassesWithDemon large. It currently has approximately 910 MB. For faster builds, increase the maximum heap size for the Gradle daemon to more than 2048 MB. To do this, set org.gradle.jvmargs = -Xmx2048M in the gradle.properties project. For more information see https://docs.gradle.org/current/userguide/build_environment.html

Error: error opening error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC upper limit exceeded Error: impurity transmission error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC upper limit exceeded : sewage transmission error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC upper limit error: sewage transmission error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC upper limit Error: error impurity transfer: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC upper limit exceeded Error: impurity transmission error: java.util.concurrent.Exe cutionException: java.lang.OutOfMemoryError: GC upper limit exceeded Error: impurity transmission error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC upper limit exceeded Error: sewage transmission error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC upper limit Error: impurity transmission error: java.util.concurrent.ExecutionEx java.lang.OutOfMemoryError: GC upper limit exceeded Error: bytecode conversion error in dex: Reason: java.lang.RuntimeException: translation was aborted: app: transformClassesWithDexForDebug FAILED Error: execution completed for task ': app: transformClassesWithDexForDebug'.OutOfMemoryError: GC upper limit exceeded Error: Bytecode to dex conversion error: Reason: java.lang.RuntimeException: translation was aborted: app: transformClassesWithDexForDebug FAILED Error: execution completed for task ': app: transformClassesWithDexForDebug'.OutOfMemoryError: GC upper limit exceeded Error: Bytecode to dex conversion error: Reason: java.lang.RuntimeException: translation was aborted: app: transformClassesWithDexForDebug FAILED Error: execution completed for task ': app: transformClassesWithDexForDebug'.

com.android.build.api.transform.TransformException: java.lang.RuntimeException: 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_91\bin\java.exe '' 2 : BUILD FAILED : : 13 23.156 . : 11 : 0 : .

+4
1

, dexing. Android build.gradle:

dexOptions {
    javaMaxHeapSize "4g"
}

android {
        dexOptions {
            incremental true
            javaMaxHeapSize "2048M"
        }
    }

+7

Source: https://habr.com/ru/post/1650110/


All Articles