How can I increase the memory for Gradle?
When I build one of the messages that appear says:
To run dex in process, the Gradle daemon needs a larger heap.
It currently has approximately 1364 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 project gradle.properties.
For more information see https://docs.gradle.org/current/userguide/build_environment.html