Android Studio error: Unable to start the daemon process的解決方法
在 Android Studio 上新建項目,出現(xiàn) Unable to start the daemon process. 錯誤,具體錯誤信息如下:
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/3.3/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
解決方法一、
方法一:刪除 C:\Users\UserName\.gradle 目錄,重新啟動 Android Studio即可。重啟動后,它會自動為你創(chuàng)建一個新的。
方法二:修改配置。File -> Settings. 選擇左邊導航欄的Compiler項,設置 VM Options 為 -Xmx512m即可。
方法三:其它應該,留出更多的內(nèi)存空間試試。
解決方法二、
在stackoverflow上找到解決方法:
Android Studio默認為Gradle daemon process分配的heap size過大(windows平臺下默認最大heap size為:75% of total physical memory up to 1 GB),所以容易造成空間不足無法啟動的問題。把空間配置稍小一點即可。
在Android Studio中進入
File->Settings->Compiler
將VM Options配置為一個較小的值,如-Xmx512m。
重啟Android Studio問題解決。
解決方法三、
1、可能是由于殺毒軟件等卸載或者禁止了daemon進程,因此,重啟電腦可以解決該問題.
2、進入Chapter 6. The Gradle Daemon進行配置,其主要講述C:\Users\Administrator\.gradle路徑下(其中Administrator是自己的用戶名),新建gradle.properties文件,并寫入org.gradle.daemon=true
一般添加 org.gradle.jvmargs=-Xmx512m 好了
相關文章
Android端權(quán)限隱私的合規(guī)化處理實戰(zhàn)記錄
大家應該都發(fā)現(xiàn)了,現(xiàn)在很多應用市場都要求應用上架需要用戶協(xié)議,這篇文章主要給大家介紹了關于Android端權(quán)限隱私合規(guī)化處理的相關資料,文中通過示例代碼介紹的非常詳細,需要的朋友可以參考下2021-08-08Flutter 快速實現(xiàn)聊天會話列表效果示例詳解
這篇文章主要為大家介紹了Flutter 快速實現(xiàn)聊天會話列表效果示例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪2022-10-10使用RecyclerView實現(xiàn)點贊頭像疊加效果
這篇文章主要為大家詳細介紹了使用RecyclerView實現(xiàn)點贊頭像疊加效果,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下2020-08-08