question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android: "Original error: Cannot verify the signature of appium-uiautomator2-server-v4.12.4.apk"

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:30 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
mykola-mokhnachcommented, Sep 22, 2020

The error is expected. SDK 30 required java9+

0reactions
sikku123344commented, Sep 8, 2022

The 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

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found