-
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of 'D:\Install\Appium-Server-GUI-windows-1.22.3-4\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.27.0.apk'. Original error: java.lang.UnsupportedClassVersionError: com/android/apksigner/ApkSignerTool : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482) Exception in thread "main" How to solve this error? Appium server log [BaseDriver] Session created with session id: 5cdc7c8c-8b32-4ee0-90ce-8635ba6ba574 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I googled the error message and got links like this: https://rollbar.com/blog/java-unsupported-major-minor-version-52-0/. Is your version of Java too old? |
Beta Was this translation helpful? Give feedback.
-
I installed jdk-20, update JAVA_HOME, PATH, but issue is reproduced |
Beta Was this translation helpful? Give feedback.
-
Again install UiAutomarot2, change the launching application to Chrome, and try to use the virtual device instead of the real device and magic. |
Beta Was this translation helpful? Give feedback.
I googled the error message and got links like this: https://rollbar.com/blog/java-unsupported-major-minor-version-52-0/. Is your version of Java too old?