Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.21.1.apk’. Original error: Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.UnsupportedClassVersionError: com/android/apksigner/ApkSignerTool has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
是appium-uiautomator2-server-v4.21.1.apk的问题吗?
看这话意思好像是JAVA版本太高了
是因为你的SDK中安装的build-tools版本超过了29
这个在安装贴中已经指明了,需要降低到29版本才能正常使用
可以看一下安装贴 Android Studio安装(推荐使用这种方法安装SDK)
最后有降级方法
另外,提问请发到答疑区,遵守发帖规范,共同维护社区的良好秩序
1 个赞