zoukankan      html  css  js  c++  java
  • Could not reserve enough space for 1572864KB object heap

    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/3.3/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


    http://www.th7.cn/Program/Android/201702/1119428.shtml

    Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap

    这意味着JVM没有足够的内存空间。gradle添加以下属性。属性文件将解决你的问题!


    解决方案:


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


    org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m
    2:或者直接在Android Studio中gradle.properties文件中添加下面这行,存在则修改


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

  • 相关阅读:
    MySQL初始化以及更改密码
    对付小白的ARP的简单介绍
    PXE批量安装CentOS7操作系统
    20不惑
    辩论会
    学习
    JAVA语言的特点
    程序流程图对新手来说很重要。
    浅谈博客、微博与轻博客的区别与联系
    要学好JAVA要注意些什么?
  • 原文地址:https://www.cnblogs.com/summary-2017/p/8965101.html
Copyright © 2011-2022 走看看