AndroidStudio 报错

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

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 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 heap

解决方案:

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

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

猜你喜欢

转载自blog.csdn.net/Aminy123/article/details/81179870