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.
I have tried changing the environment variables into different path but nothing worked.
I have faced same issue after updating android studio version electric eel. it's show error like this.
After many try I found this solution. you can follow this steps.
Step 1 : You can visit this site Official Oracle Java SE Development Kit Site and download particular JDK kit for your pc configuration. I am suggest to download this JDK version Java SE Development Kit 18.0.2.1 and after download you can install in your computer.
Step 2 : After Successfully installed you can go
Stat--> Search--> Edit Environment Variable --> You can follow this image
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.