問題如下:

android studio開以後出現錯誤訊息 且看不到gradle " 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 http://gradle.org/docs/2.2.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 object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. "

 

解決方法1:

https://code.google.com/p/android/issues/detail?id=93641

 

解決方法2:

https://teamtreehouse.com/forum/gradle-funfacts-project-refresh-failed

方法2是新增一個環境變數 它會使電腦要開啟所有java應用程式時候,不管這程式用了多少記憶體,系統都會另外提供 524 MB供它使用,但可能會占用過多記憶體資源。

 

arrow
arrow
    文章標籤
    gradle android studio assets
    全站熱搜
    創作者介紹
    創作者 bravohsiao 的頭像
    bravohsiao

    夏夜醍醐

    bravohsiao 發表在 痞客邦 留言(0) 人氣()