0

I have gone in and checked to make sure the file exists, but I'm not familiar with the not able to verify the signature error:

Here is the full error:

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.15.0.apk'. Original error: Could not find 'apksigner.jar' in ["/usr/local/share/android-sdk/platform-tools/apksigner.jar","/usr/local/share/android-sdk/emulator/apksigner.jar","/usr/local/share/android-sdk/cmdline-tools/latest/bin/apksigner.jar","/usr/local/share/android-sdk/tools/apksigner.jar","/usr/local/share/android-sdk/tools/bin/apksigner.jar","/usr/local/share/android-sdk/apksigner.jar"]. Do you have Android Build Tools installed at '/usr/local/share/android-sdk'?
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'

I'm assuming they go hand in hand, but I'm not super sure.

I checked for the missing item in the second error, but could not find it. Is there a way that I can find this file somewhere and manually upload it. Or what is the best way to go about solving this issue. I'm quite a novice so this is all pretty new to me (ie. getting a necessary file that does not currently exist in the directory or solving the signature issue)

I'm currently running appium on the desktop client and have added the file paths for JAVA_HOME and ANDROID_HOME.

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Grabes
  • 11
  • 1
  • 1
  • 2
  • Does this answer your question? [Can't find 'apksigner' executable to manually sign APK](https://stackoverflow.com/questions/40004884/cant-find-apksigner-executable-to-manually-sign-apk) – tripleee Jul 26 '22 at 09:41

4 Answers4

3

Update or install Android Build tools in Android-Studio

Open Android Studio -> Tools -> SDK manager -> SDK Tools -> Android SDK BUild -Tools Then install recent version

And Chcek again it'll surely work ..!

Code Love
  • 31
  • 2
0

It is not Appium issue, but Android SDK missing apksigner:

Check the link and install build-tools with extras, then check apksigner is in path /Users/<your user>/Library/Android/sdk/build-tools/<verion>

Also you can use appium-doctor to check your setup

dmle
  • 3,498
  • 1
  • 14
  • 22
0

this worked for me

Open Android Studio -> Tools -> SDK manager -> SDK Tools -> Android SDK BUild -Tools Then install recent version

Sneha
  • 1
0

For those who failed and scrolled till this answer,

install the uiautomator2 apk (and test apk) before creating the appium session, and with that in place try to add desired capability

skipServerInstallation to true

refer image below solve my issue.

enter image description here