当前位置:   article > 正文

gradle编译无法初始化jvm问题_an unrecognized jvm option is used

an unrecognized jvm option is used

gradle编译ionic程序时,报以下错误:

  1. Error:Unable to start the daemon process.
  2. This problem might be caused by incorrect configuration of the daemon.
  3. For example, an unrecognized jvm option is used.
  4. Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.12/userguide/gradle_daemon.html
  5. Please read below process output to find out more:
  6. -----------------------
  7. Error occurred during initialization of VM
  8. Could not reserve enough space for object heap
  9. Error: Could not create the Java Virtual Machine.
  10. Error: A fatal exception has occurred. Program will exit

解决方案

在个人文件夹( (C:\Users\username\.gradle 或 ~\.gradle))下创建gradle.properties文件,添加

org.gradle.jvmargs=-Xmx1024m -XX:MaxPermSize=256m

注:可根据自己的需要设置jvm参数-Xmx的大小


本文转载自:https://blog.csdn.net/xujinfu2/article/details/50505251/

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/942603
推荐阅读
相关标签
  

闽ICP备14008679号