Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
916 views
in Technique[技术] by (71.8m points)

Cannot verify the signature of '////apks/appium-uiautomator2-server-v4.15.0.apk'

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.

question from:https://stackoverflow.com/questions/65925962/cannot-verify-the-signature-of-apks-appium-uiautomator2-server-v4-15-0-apk

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...