I got a new Laptop and I recently installed Android Studio. I've managed to run it on my first few tries, but it suddenly won't open afterwards. Perhaps it might be because I've been setting up and installing/uninstalling other apps for the laptop, and the IDE's components might get mixed along the way. I really don't know, i'm new at coding :( . I even tried installing the new Java as an attempt to solve this, but it didn't work considering that I didn't even installed Java in the first place back when it's still working.
I tried researching along the way, anything related "Can't open, Android Studio" I tried doing the thing where you open it and close it and in Task Manager. But it doesn't even show in the task manager lol , i got nothing to close.
and i did the thing that majority of the people said "add the system variable JAVA HOME and JDK HOME to correct the JAVA installation location" ...... It did show the error, but I don't know how to fix it. (SEE ATTACHED CODE FROM CMD PROMPT)
Can someone help me and give me an instruction to fix this in a way that a noob in coding, like me, would understand :'(
Microsoft Windows [Version 10.0.22000.318]
(c) Microsoft Corporation. All rights reserved.
C:\Users\Zethra>echo %JAVA_HOME%
C:\Program Files\Java\jre1.8.0_333
C:\Users\Zethra>echo %JDK_HOME%
C:\Program Files\Java\jre1.8.0_333
C:\Users\Zethra>cd \Program Files\Android\Android Studio\bin
C:\Program Files\Android\Android Studio\bin>studio.bat
Error occurred during initialization of VM
java.lang.UnsupportedClassVersionError: com/intellij/util/lang/PathClassLoader has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.lang.SystemClassLoaderAction.run(Unknown Source)
at java.lang.SystemClassLoaderAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.initSystemClassLoader(Unknown Source)
at java.lang.ClassLoader.getSystemClassLoader(Unknown Source)
C:\Program Files\Android\Android Studio\bin>