eduardo2207 eduardo2207 - 1 year ago 225
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:

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download