ReactNativ / react-native-solved-error

0 stars 0 forks source link

Could not create the Java Virtual Machine #1

Open ReactNativ opened 1 year ago

ReactNativ commented 1 year ago

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/7.3.3/userguide/gradle_daemon.html Process command line: /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/java -XX:MaxPermSize=4096m -XX:+HeapDumpOnOutOfMemoryError --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx4096m -Dfile.encoding=UTF-8 -Duser.country=TR -Duser.language=en -Duser.variant -cp /Users/macos/.gradle/wrapper/dists/gradle-7.3.3-all/4295vidhdd9hd3gbjyw1xqxpo/gradle-7.3.3/lib/gradle-launcher-7.3.3.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.3.3 Please read the following process output to find out more:


Unrecognized VM option 'MaxPermSize=4096m' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

ReactNativ commented 1 year ago

macos: /usr/libexec/java_home -V export JAVA_HOME=`/usr/libexec/java_home -v 11.0`