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

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 31 (14 by maintainers)

Most upvoted comments

The error is expected. SDK 30 required java9+

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.