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