1195116234 2021-05-13 06:18 采纳率: 33.3%
浏览 352

android studio 一直重复创建守护进程,然后直到内存占满,报错无法创建守护进程

android studio 4.2 已经重装了一次了,(哭

下面是错误信息:

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 Manual chapter on the daemon at https://docs.gradle.org/6.7.1/userguide/gradle_daemon.html
Process command line: C:\Program Files\Java\jdk1.8.0_91\bin\java.exe -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp D:\android\gradle\wrapper\dists\gradle-6.7.1-bin\bwlcbys1h7rz3272sye1xwiv6\gradle-6.7.1\lib\gradle-launcher-6.7.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.7.1
Please read the following process output to find out more:
-----------------------
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 1048576 bytes for AllocateHeap
# An error report file with more information is saved as:
# D:\android\gradle\daemon\6.7.1\hs_err_pid25604.log

-----------------------
Check the JVM arguments defined for the gradle process in:
 - gradle.properties in project root directory

 

一直重复这个操作:

Starting Gradle Daemon...
Gradle Daemon started in 5 s 943 ms
Starting Gradle Daemon...
Gradle Daemon started in 6 s 781 ms
Starting Gradle Daemon...
Gradle Daemon started in 6 s 119 ms

展开全部

  • 写回答

2条回答 默认 最新

  • 1195116234 2021-05-13 06:25
    关注

    修改gradle.properties里的内存大小也没用,电脑内存是8g,gradle6.7以前的也能运行,求大神们帮助

    评论
  • 碧水逍遥 2021-05-14 03:59
    关注

    关闭AS,你把C:\Users\Administrator中的.android 和 Android Studio的文件夹删除掉,再启动AS,重新初始化AS,导入项目试试看

    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部