Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find 'apksigner.jar #678

Open
Potterjr opened this issue Apr 3, 2024 · 3 comments
Open

Could not find 'apksigner.jar #678

Potterjr opened this issue Apr 3, 2024 · 3 comments
Labels

Comments

@Potterjr
Copy link

Potterjr commented Apr 3, 2024

Event 'newSessionStarted' logged at 1712112110259 (09:41:50 GMT+0700)
[AppiumDriver@2f25] Encountered internal error running command: Error: Cannot verify the signature of 'C:\Users\poto1\node_modules\appium-flutter-driver\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'. Original error: Could not find 'apksigner.jar' in ["C:\Users\poto1\AppData\Local\Android\Sdk\platform-tools\platform-tools\apksigner.jar","C:\Users\poto1\AppData\Local\Android\Sdk\platform-tools\emulator\apksigner.jar","C:\Users\poto1\AppData\Local\Android\Sdk\platform-tools\cmdline-tools\latest\bin\apksigner.jar","C:\Users\poto1\AppData\Local\Android\Sdk\platform-tools\tools\apksigner.jar","C:\Users\poto1\AppData\Local\Android\Sdk\platform-tools\tools\bin\apksigner.jar","C:\Users\poto1\AppData\Local\Android\Sdk\platform-tools\apksigner.jar"]. Do you have Android Build Tools installed at 'C:\Users\poto1\AppData\Local\Android\Sdk\platform-tools'?
[AppiumDriver@2f25] at ADB.checkApkCert (C:\Users\poto1\node_modules\appium-flutter-driver\node_modules\appium-uiautomator2-driver\node_modules\appium-adb\lib\tools\apk-signing.js:320:11)
[AppiumDriver@2f25] at UiAutomator2Server.prepareServerPackage (C:\Users\poto1\node_modules\appium-flutter-driver\node_modules\appium-uiautomator2-driver\lib\uiautomator2.js:89:9)

image

@KazuCocoa
Copy link
Member

Usually it is in build tools. What name of apksigner.jar is in your build tools directory?

@Potterjr
Copy link
Author

Potterjr commented Apr 3, 2024

this is in my directory in \Android\Sdk\build-tools\35.0.0-rc2\lib
image
I have apksigner.jar but I don't know why did not find 'apksigner.jar'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants