Getting message "Unable to start the daemon process"

I’m trying to build my first app since installing Dictionary App builder. When I click Build Android App, I ultimately get a message saying
FAILURE: Build failed with an exception.

*What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at URL Removed
Please read the following process output to find out more:

Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heap

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    The system cannot find the path specified.

BUILD FAILED:
The signed apk was not built successfully. This could be due to an internet connection problem. On the first build, the compiler needs to connect to the internet to download some library files."

What do I need to do?

This doesn’t explain why the error occurred, but the actual error is “Could
not reserve enough space for 1572864KB object heap”, which essentially
means that Java didn’t have enough memory to run that part of the program.

You could try closing other programs / restarting Windows before doing this
step to see if that helps. There are other options but try that first.

Warm regards,

Christopher Hirt
Team Manager - Thailand
SIL Language Software Development
chris_hirt@sil.org

I’ve tried to create the Dictionary App after a restart several times
and received the same error.

In consultation with both Chris Hirt and John Ross we added an environmental variable to my computer by doing the following steps
Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System Variables->New:
Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M

I’m now failing at a different point, which I will create another thread for.