flutter AndroidStudio 報錯

Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for detailshtml

FAILURE: Build failed with an exception.jvm

* 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 https://docs.gradle.org/4.4/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heapide

解決方案:gradle

直接在Android Studio中gradle.properties文件中添加下面這行,存在則修改:ui

org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512mspa

相關文章
相關標籤/搜索