报错: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
原因:安装android sdk时bulid-tools版本30以上和jdk1.8的不匹配,所以需要将bulid-tools版本降为30以下的
安装Android Studio开发工具,在该工具里安装android sdk,降低版本的方法:
步骤1:
步骤2,选择SDK Manager
步骤3:选择SDK Tools 选择build-tools勾选Show Package detill
步骤4:选择自己需要的版本
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。