Android Studio出现Unable to start the daemon process问题
生活随笔
收集整理的這篇文章主要介紹了
Android Studio出现Unable to start the daemon process问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、問題
在Android Studio中新建的工程出現了以下問題
Error:Unable to start the daemon process.http://write.blog.csdn.net/postedit?ref=toolbar 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 1572864KB object heap二、分析
根據問題我們分析可以得出:Android Studio中gradle構建堆棧空間不足1572864KB。
三、解決
打開工程目錄下的gradle.properties文件
(方法一)
將org.gradle.jvmargs=-Xmx1536m中的值設置小一些,一般為1024或512
(方法二)
將org.gradle.jvmargs=-Xmx1536m前面加上“#”注釋掉即可(Gradle的jvm的內存分配設置,注釋掉就是使用默認或者系統配置。)
總結
以上是生活随笔為你收集整理的Android Studio出现Unable to start the daemon process问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: The Complete List of
- 下一篇: APK安装错误和解决方法