美文网首页Android开发Android技术知识
Android Studio Error:Unable to s

Android Studio Error:Unable to s

作者: 想入飞飞___ | 来源:发表于2016-10-20 11:22 被阅读1891次

    这几天自己的笔记本一直报这个错,有时重启一下就好了,当然也有时候搞不定的时候,就在昨天搞了好久终于找到答案了。


    错误.png

    Error: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/2.14.1/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 2097152KB object heap
    Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0

    Paste_Image.png

    把org.gradle.jvmargs=-Xmx1536m的1536 改为512
    org.gradle.jvmargs=-Xmx512m


    rebuild一下就好了,什么原理呢?也就是JVM内存占用的太大了,调小一下就行了。

    相关文章

      网友评论

        本文标题:Android Studio Error:Unable to s

        本文链接:https://www.haomeiwen.com/subject/wtgxuttx.html