eduardo2207 eduardo2207 - 8 months ago 115
Android Question

Error:Unable to start the daemon process: could not reserve enough space for object heap

Please assign more memory to Gradle in the project's file.
For example, the following line, in the file, sets the maximum Java heap size to 1,024 MB:


Try to add this code to your build.gradle:

dexOptions {
        javaMaxHeapSize "2048M"//2GB or more

If it didn't help use this answer or this.