1195116234 2021-05-13 14:18 采纳率: 33.3%
浏览 311

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 14:25
    关注

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

    评论

报告相同问题?

悬赏问题

  • ¥20 C#调用虚拟键盘TabTip.exe
  • ¥15 Qt4代码实现下面的界面
  • ¥15 CCS离散化传递函数与仿真不一致
  • ¥15 prism提示我reinstall prism 如何解决
  • ¥15 asp.core 权限控制怎么做,需要控制到每个方法
  • ¥20 while循环中OLED显示中断中的数据不正确
  • ¥15 这个视频里的stm32f4代码是怎么写的
  • ¥15 JNA调用DLL报堆栈溢出错误(0xC00000FD)
  • ¥15 请教SGeMs软件的使用
  • ¥15 自己用vb.net编写了一个dll文件,如何只给授权的用户使用这个dll文件进行打包编译,未授权用户不能进行打包编译操作?