Flutter - Failure: Build Failed With An Exception. - Unable To Start The Daemon Process. - Android Studio - Vscode
Solution 1:
The problem was that OpenJDK platform binary opens many instances which eats up my memory, I found out about this problem from this question and this answer said to turn off the Hotspot and that did work. Also restarting your laptop might work for some cases but not all.
I don't know how the Hotspot is the problem or in what way is it connected to OpenJDK if anyone has an explanation please comment it.
Solution 2:
Please always post your error logs as text and not images.
1- run flutter clean
then build again.
2- Are you running it on a simulator or physical device?
3- If on a simulator, increase that devices virtual ram. Better more, delete the simulator and create a new one.
4- If still doesn't work, run flutter upgrade
.
5- Can you build the file as an APK? in other words, not to run on a device?
6- Please post the output of flutter build apk -v
.
Post a Comment for "Flutter - Failure: Build Failed With An Exception. - Unable To Start The Daemon Process. - Android Studio - Vscode"