-1

Im trying to compile my react-native code using the command yarn android, but it shows this error on the terminal. Im using Linux Pop!_OS 21.04 and Visual Studio Code.

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

I've tried some solutions but none of them have worked. Thank you in advance !

Yifan
  • 1
  • 1
  • 2

1 Answers1

0

Just by switching to java 8 this problem dissapeared

Yifan
  • 1
  • 1
  • 2