I have updated android studio to Electric Eel and I got the following error message. What should I do ?
Error launching Studio
Failed to load JVM DLL C:\Program Files\Android Android Studio\jbr\bin\server\jvm.dll If you already have a JDK installed, define a JAVA_HOME variable in Computer > System Properties > System Settings > Environment Variables.
After many try I found this solution. you can follow this steps.
Step 1 : You can visit this site
Step 3: Now You can Add JAVA_HOME: C:\Program Files\Java\jdk-18.0.2.1 (install version in your pc) Like this
and also add PATH : C:\Program Files\Java\jdk-18.0.2.1\bin (install version in your pc) Like this
Note : You can only add user variable not system variable.
Step 4 : Last step but main after follow these steps you can restart your pc.
CodePudding user response:
Same here, didn't work for 19 but with 18.0.2.1 it went through. Specially the "not system variable" part that no one had mentioned before! Thx (I wanted to upvote but still need 15 reputation points)