Android: "Original error: Cannot verify the signature of appium-uiautomator2-server-v4.12.4.apk"
See original GitHub issueThe problem
Error appears right on start driver with full reset options. Problem dit not happen with Appium 1.18.1 version.
Environment
- Appium version (or git revision) that exhibits the issue: 1.19.0-beta.0
- Mobile platform/version under test: Android
- Real device or emulator/simulator: real device with android 10
Details
Tried 2 build tools (30.0.2 + 29.0.2) both same result:
An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.12.4.apk'. Original error: Command '/Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/qa/Library/Android/sdk/build-tools/30.0.2/lib/apksigner.jar verify --print-certs /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.12.4.apk' exited with code 1
An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.12.4.apk'. Original error: Command '/Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/qa/Library/Android/sdk/build-tools/29.0.2/lib/apksigner.jar verify --print-certs /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.12.4.apk' exited with code 1
Issue Analytics
- State:
- Created 3 years ago
- Comments:30 (14 by maintainers)
Top Results From Across the Web
Cannot verify the signature of '////apks/appium-uiautomator2 ...
Update or install Android Build tools in Android-Studio. Open Android Studio -> Tools -> SDK manager -> SDK Tools -> Android SDK BUild ......
Read more >Could not verify - Issues/Bugs - Appium Discuss
Original error : An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of ...
Read more >Exception when recording Mobile (Unable to create a new ...
Original error : Cannot verify the signature of 'C:\Users. ... UnsupportedClassVersionError: com/android/apksigner/ApkSignerTool has been ...
Read more >Sign your app - Android Developers
Google uses the upload certificate to verify your identity, and signs your APK(s) with your app signing key for distribution as shown in...
Read more >Signing the Android Application Package - Xamarin
APK, it must first be signed with a signing key (also referred to as a certificate). An existing certificate can be used by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The error is expected. SDK 30 required java9+
I think the apisigner.exe file is missing in the platform-tools You can add the apisigner.exe file inside the platform-tools folder and run You can find the apisigner file here
Windows 10 Device: Realme C21 Android version: 11 API Level: 30.
It works for me I hope it works for you as well
Thank you.