Issue
Flutter project runs smoothly on my old laptop. But with my new laptop, I can’t run my flutter project in debug mode.
This error
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start daemon process.
This issue may be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
See the user manual chapter about daemons at https://docs.gradle.org/5.6.2/userguide/gradle_daemon.html.
Process command line: C:\Program Files (x86)\Java\jre1.8.0_221\bin\java.exe -Xmx1536M -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser. Variant -cp C:\Users\ajoris\.gradle\wrapper\dists\gradle-5.6.2-all\9st6wgf78h16so49nn74lgtbb\gradle-5.6.2\lib\gradle-launcher-5.6.2.jar org.gradle.launcher. daemon.bootstrap.GradleDaemon 5.6.2
Please read the following process output for more details.
-----------------------
An error occurred while initializing the VM
Could not reserve enough space for 1572864KB object heap
Pick up JAVA_TOOL_OPTIONS: -Djava.vendor="Sun Microsystems Inc."
* Try:
Run with the --stacktrace option to get the stack trace. Run with the --info or --debug option to get more logging output. Running with --scan will give you full insight.
Am I missing something in my new laptop
settings? Tried clean project
, upgrade flutter
but always fails. Sorry for being new
Solution
The general procedure I use is:
flutter doctor
in terminalHope this helps
Answered By – Sen Alexandru
Answer Checked By – Timothy Miller (Easybugfix Admin)