Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] (Cannot use apksigner tool for signature verification. )
See original GitHub issueEnvironment:
Windows 10 64b Python 3.7 java version “1.8.0_261” npm 6.14.6 Appium desktop Appium v1.17.1 Appium server (from npm) 1.17.1 sdkmanager 3.6.0 appium-uiautomator2-driver@1.56.1 node v12.15.0 Android 8.1 smartphone
Problem
I am trying to automate an application on real Android 8.1 smartphone with Python 3.7. My driver can’t be initialized. I get these error messages (see log): Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] (Cannot use apksigner tool for signature verification. )
I tried both: Desktop appium and npm Appium servers. I get same issues.
Python code:
desired_caps = {}
desired_caps['automationName'] = 'UiAutomator2'
desired_caps['platformName'] = p_os
desired_caps['platformVersion'] = p_version
desired_caps['deviceName'] = p_deviceName
desired_caps['udid'] = p_udid
desired_caps['noReset'] = 'true'
desired_caps['systemPort'] = p_systemPort
desired_caps['chromeDriverPort'] = p_systemPort
desired_caps['appWaitDuration'] = 100000
desired_caps['newCommandTimeout'] = 0
desired_caps['wdaStartupRetries'] = 4
desired_caps['wdaStartupRetryInterval'] = 20000
desired_caps['uiautomator2ServerLaunchTimeout'] = 100000
desired_caps['appPackage'] = 'com.facebook.katana'
desired_caps['appActivity'] = 'com.facebook.katana.LoginActivity'
Appium log:
[info] [35m[Appium][39m Welcome to Appium v1.17.1
[info] [35m[Appium][39m Non-default server args:
[info] [35m[Appium][39m sessionOverride: true
[info] [35m[Appium][39m allowInsecure: {
[info] [35m[Appium][39m }
[info] [35m[Appium][39m denyInsecure: {
[info] [35m[Appium][39m }
[info] [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m
[info] [35m[HTTP][39m [90m{"capabilities":{"firstMatch":[{"appium:automationName":"UiAutomator2","platformName":"Android","appium:platformVersion":"8.1","appium:deviceName":"i11","appium:udid":"0123456789ABCDEF","appium:noReset":"true","appium:systemPort":"4728","appium:chromeDriverPort":"4728","appium:appWaitDuration":100000,"appium:newCommandTimeout":0,"appium:wdaStartupRetries":4,"appium:wdaStartupRetryInterval":20000,"appium:uiautomator2ServerLaunchTimeout":100000,"appium:appPackage":"com.facebook.katana","appium:appActivity":"com.facebook.katana.LoginActivity"}]},"desiredCapabilities":{"automationName":"UiAutomator2","platformName":"Android","platformVersion":"8.1","deviceName":"i11","udid":"0123456789ABCDEF","noReset":"true","systemPort":"4728","chromeDriverPort":"4728","appWaitDuration":100000,"newCommandTimeout":0,"wdaStartupRetries":4,"wdaStartupRetryInterval":20000,"uiautomator2ServerLaunchTimeout":100000,"appPackage":"com.facebook.katana","appActivity":"com.facebook.katana.LoginActivity"}}[39m
[debug] [35m[W3C][39m Calling AppiumDriver.createSession() with args: [{"automationName":"UiAutomator2","platformName":"Android","platformVersion":"8.1","deviceName":"i11","udid":"0123456789ABCDEF","noReset":"true","systemPort":"4728","chromeDriverPort":"4728","appWaitDuration":100000,"newCommandTimeout":0,"wdaStartupRetries":4,"wdaStartupRetryInterval":20000,"uiautomator2ServerLaunchTimeout":100000,"appPackage":"com.facebook.katana","appActivity":"com.facebook.katana.LoginActivity"},null,{"firstMatch":[{"appium:automationName":"UiAutomator2","platformName":"Android","appium:platformVersion":"8.1","appium:deviceName":"i11","appium:udid":"0123456789ABCDEF","appium:noReset":"true","appium:systemPort":"4728","appium:chromeDriverPort":"4728","appium:appWaitDuration":100000,"appium:newCommandTimeout":0,"appium:wdaStartupRetries":4,"appium:wdaStartupRetryInterval":20000,"appium:uiautomator2ServerLaunchTimeout":100000,"appium:appPackage":"com.facebook.katana","appium:appActivity":"com.facebook.katana.LoginActivity"}]}]
[debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1594982149396 (12:35:49 GMT+0200 (heure d’été d’Europe centrale))
[info] [35m[Appium][39m Appium v1.17.1 creating new AndroidUiautomator2Driver (v1.44.2) session
[debug] [35m[Appium][39m There are no active sessions for cleanup
[debug] [35m[BaseDriver][39m W3C capabilities and MJSONWP desired capabilities were provided
[debug] [35m[BaseDriver][39m Creating session with W3C capabilities: {
[debug] [35m[BaseDriver][39m "alwaysMatch": {
[debug] [35m[BaseDriver][39m "platformName": "Android",
[debug] [35m[BaseDriver][39m "appium:automationName": "UiAutomator2",
[debug] [35m[BaseDriver][39m "appium:platformVersion": "8.1",
[debug] [35m[BaseDriver][39m "appium:deviceName": "i11",
[debug] [35m[BaseDriver][39m "appium:udid": "0123456789ABCDEF",
[debug] [35m[BaseDriver][39m "appium:noReset": "true",
[debug] [35m[BaseDriver][39m "appium:systemPort": "4728",
[debug] [35m[BaseDriver][39m "appium:chromeDriverPort": "4728",
[debug] [35m[BaseDriver][39m "appium:appWaitDuration": 100000,
[debug] [35m[BaseDriver][39m "appium:newCommandTimeout": 0,
[debug] [35m[BaseDriver][39m "appium:wdaStartupRetries": 4,
[debug] [35m[BaseDriver][39m "appium:wdaStartupRetryInterval": 20000,
[debug] [35m[BaseDriver][39m "appium:uiautomator2ServerLaunchTimeout": 100000,
[debug] [35m[BaseDriver][39m "appium:appPackage": "com.facebook.katana",
[debug] [35m[BaseDriver][39m "appium:appActivity": "com.facebook.katana.LoginActivity"
[debug] [35m[BaseDriver][39m },
[debug] [35m[BaseDriver][39m "firstMatch": [
[debug] [35m[BaseDriver][39m {}
[debug] [35m[BaseDriver][39m ]
[debug] [35m[BaseDriver][39m }
[warn] [35m[BaseDriver][39m Number capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Number capability passed in as string. Functionality may be compromised.
[warn] [35m[BaseDriver][39m Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[warn] [35m[BaseDriver][39m Capability 'systemPort' changed from string ('4728') to integer (4728). This may cause unexpected behavior
[warn] [35m[BaseDriver][39m Capability 'chromeDriverPort' changed from string ('4728') to integer (4728). This may cause unexpected behavior
[warn] [35m[BaseDriver][39m The following capabilities were provided, but are not recognized by Appium:
[warn] [35m[BaseDriver][39m wdaStartupRetries
[warn] [35m[BaseDriver][39m wdaStartupRetryInterval
[info] [35m[BaseDriver][39m Session created with session id: 62d0db65-0161-41ba-92fe-d7b3fd1cada1
[info] [35m[UiAutomator2][39m Starting 'com.facebook.katana' directly on the device[debug] [35m[ADB][39m Connected devices: [{"udid":"0123456789ABCDEF","state":"device"}]
[info] [35m[AndroidDriver][39m Using device: 0123456789ABCDEF
[info] [35m[ADB][39m Using 'adb.exe' from 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe'
[debug] [35m[ADB][39m Setting device id to 0123456789ABCDEF
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell getprop ro.build.version.sdk'[debug] [35m[ADB][39m Current device property 'ro.build.version.sdk': 23
[debug] [35m[ADB][39m Device API level: 23
[warn] [35m[AndroidDriver][39m No app sent in, not parsing package/activity
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF wait-for-device'
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell echo ping'
[debug] [35m[AndroidDriver][39m Pushing settings apk to device...
[debug] [35m[ADB][39m Getting install status for io.appium.settings
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell dumpsys package io.appium.settings'[debug] [35m[ADB][39m 'io.appium.settings' is installed
[debug] [35m[ADB][39m Getting package info for 'io.appium.settings'
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell dumpsys package io.appium.settings'[debug] [35m[ADB][39m The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.1.0' >= '3.1.0')
[debug] [35m[ADB][39m There is no need to install/upgrade 'C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk'
[debug] [35m[ADB][39m Getting IDs of all 'io.appium.settings' processes
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell 'pgrep --help; echo $?''[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell pgrep -f io\\.appium\\.settings'[debug] [35m[AndroidDriver][39m io.appium.settings is already running. There is no need to reset its permissions.
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell appops set io.appium.settings android\:mock_location allow'[debug] [35m[Logcat][39m Starting logcat capture[debug] [35m[UiAutomator2][39m Forwarding UiAutomator2 Server port 6790 to 4728
[debug] [35m[ADB][39m Forwarding system: 4728 to device: 6790
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF forward tcp\:4728 tcp\:6790'
[debug] [35m[ADB][39m Getting install status for io.appium.uiautomator2.server
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell dumpsys package io.appium.uiautomator2.server'[debug] [35m[ADB][39m 'io.appium.uiautomator2.server' is installed
[debug] [35m[ADB][39m Getting package info for 'io.appium.uiautomator2.server'
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell dumpsys package io.appium.uiautomator2.server'[debug] [35m[ADB][39m The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.5.5' >= '4.5.5')
[debug] [35m[UiAutomator2][39m io.appium.uiautomator2.server installation state: sameVersionInstalled
[debug] [35m[ADB][39m Checking app cert for C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.5.apk
[info] [35m[ADB][39m Using 'apksigner.jar' from 'C:\Users\Nino\AppData\Local\Android\build-tools\30.0.1\lib\apksigner.jar'
[debug] [35m[ADB][39m Starting apksigner: 'C:\\Program Files\\Java\\jre1.8.0_261\\bin\\java.exe' -Xmx1024M -Xss1m -jar C:\\Users\\Nino\\AppData\\Local\\Android\\build-tools\\30.0.1\\lib\\apksigner.jar verify --print-certs C:\\Users\\Nino\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v4.5.5.apk[warn] [35m[ADB][39m Cannot use apksigner tool for signature verification. Original error: Command ''C:\\Program Files\\Java\\jre1.8.0_261\\bin\\java.exe' -Xmx1024M -Xss1m -jar C:\\Users\\Nino\\AppData\\Local\\Android\\build-tools\\30.0.1\\lib\\apksigner.jar verify --print-certs C:\\Users\\Nino\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v4.5.5.apk' exited with code 1
[debug] [35m[ADB][39m Defaulting to verify.jar[debug] [35m[ADB][39m 'C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.5.apk' is signed with the default certificate
[debug] [35m[ADB][39m Getting install status for io.appium.uiautomator2.server.test
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell dumpsys package io.appium.uiautomator2.server.test'
[debug] [35m[ADB][39m 'io.appium.uiautomator2.server.test' is not installed
[debug] [35m[ADB][39m Checking app cert for C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[debug] [35m[ADB][39m Starting apksigner: 'C:\\Program Files\\Java\\jre1.8.0_261\\bin\\java.exe' -Xmx1024M -Xss1m -jar C:\\Users\\Nino\\AppData\\Local\\Android\\build-tools\\30.0.1\\lib\\apksigner.jar verify --print-certs C:\\Users\\Nino\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk[warn] [35m[ADB][39m Cannot use apksigner tool for signature verification. Original error: Command ''C:\\Program Files\\Java\\jre1.8.0_261\\bin\\java.exe' -Xmx1024M -Xss1m -jar C:\\Users\\Nino\\AppData\\Local\\Android\\build-tools\\30.0.1\\lib\\apksigner.jar verify --print-certs C:\\Users\\Nino\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk' exited with code 1
[debug] [35m[ADB][39m Defaulting to verify.jar[debug] [35m[ADB][39m 'C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
[info] [35m[UiAutomator2][39m Server packages are going to be (re)installed
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF help'
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF features'[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell 'ls -t -1 /data/local/tmp/appium_cache 2>&1 || echo _ERROR_''
[debug] [35m[ADB][39m The current Android API does not support extended ls options. Defaulting to no-options call
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell 'ls /data/local/tmp/appium_cache 2>&1 || echo _ERROR_''[debug] [35m[ADB][39m The count of applications in the cache: 6
[info] [35m[ADB][39m The application at 'C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.5.apk' is already cached to '/data/local/tmp/appium_cache/75e2638551246b73c8e1fef0017fc2163110ac3c.apk'
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell touch -am /data/local/tmp/appium_cache/75e2638551246b73c8e1fef0017fc2163110ac3c.apk'
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell pm install -r /data/local/tmp/appium_cache/75e2638551246b73c8e1fef0017fc2163110ac3c.apk'[info] [35m[ADB][39m The installation of 'appium-uiautomator2-server-v4.5.5.apk' took 10542ms
[debug] [35m[ADB][39m Install command stdout: pkg: /data/local/tmp/appium_cache/75e2638551246b73c8e1fef0017fc2163110ac3c.apk
[debug] [35m[ADB][39m Success
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell 'ls /data/local/tmp/appium_cache 2>&1 || echo _ERROR_''[debug] [35m[ADB][39m The count of applications in the cache: 6
[info] [35m[ADB][39m The application at 'C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is already cached to '/data/local/tmp/appium_cache/337225c94683de622d6effd223b524dc8d16ef48.apk'
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell touch -am /data/local/tmp/appium_cache/337225c94683de622d6effd223b524dc8d16ef48.apk'
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell pm install -r /data/local/tmp/appium_cache/337225c94683de622d6effd223b524dc8d16ef48.apk'[info] [35m[ADB][39m The installation of 'appium-uiautomator2-server-debug-androidTest.apk' took 1976ms
[debug] [35m[ADB][39m Install command stdout: pkg: /data/local/tmp/appium_cache/337225c94683de622d6effd223b524dc8d16ef48.apk
[debug] [35m[ADB][39m Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[debug] [35m[UiAutomator2][39m Deleting UiAutomator2 session
[debug] [35m[UiAutomator2][39m Deleting UiAutomator2 server session
[debug] [35m[WD Proxy][39m Matched '/' to command name 'deleteSession'
[warn] [35m[UiAutomator2][39m Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF shell am force-stop com.facebook.katana'[debug] [35m[Logcat][39m Stopping logcat capture
[debug] [35m[ADB][39m Removing forwarded port socket connection: 4728
[debug] [35m[ADB][39m Running 'C:\Users\Nino\AppData\Local\Android\platform-tools\adb.exe -P 5037 -s 0123456789ABCDEF forward --remove tcp\:4728'
[debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1594982170100 (12:36:10 GMT+0200 (heure d’été d’Europe centrale))
[debug] [35m[W3C][39m Encountered internal error running command: Error: pkg: /data/local/tmp/appium_cache/337225c94683de622d6effd223b524dc8d16ef48.apk
[debug] [35m[W3C][39m Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[debug] [35m[W3C][39m at ADB.install (C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\apk-utils.js:582:13)
[debug] [35m[W3C][39m at UiAutomator2Server.installServerApk (C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\uiautomator2.js:121:11)
[debug] [35m[W3C][39m at AndroidUiautomator2Driver.initUiAutomator2Server (C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:440:7)
[debug] [35m[W3C][39m at AndroidUiautomator2Driver.startUiAutomator2Session (C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:338:5)
[debug] [35m[W3C][39m at AndroidUiautomator2Driver.createSession (C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:212:7)
[debug] [35m[W3C][39m at AppiumDriver.createSession (C:\Users\Nino\AppData\Local\Programs\Appium\resources\app\node_modules\appium\lib\appium.js:358:35)
[debug] [35m[W3C][39m Destroying socket connection
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session [39m[31m500[39m [90m20826 ms - 873[39m
[info] [35m[HTTP][39m [90m[39m
Python error output:
Traceback (most recent call last):
File "E:/DropboxBACKUP14112018/Cff/Python/phonebot_lockV2/Facebook_bot.py", line 3236, in <module>
StartBot("FACEBOOK ","0123456789ABCDEF","4728","i11", "8.1","Android",2,2,2,2,lock)
File "E:/DropboxBACKUP14112018/Cff/Python/phonebot_lockV2/Facebook_bot.py", line 885, in StartBot
driver = Initialisation_Driver(p_name_action, p_udid, p_systemPort, p_deviceName, p_version, p_os)
File "E:/DropboxBACKUP14112018/Cff/Python/phonebot_lockV2/Facebook_bot.py", line 352, in Initialisation_Driver
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
File "E:\DropboxBACKUP14112018\Cff\Python\PhoneBot\venv\lib\site-packages\appium\webdriver\webdriver.py", line 151, in __init__
proxy
File "E:\DropboxBACKUP14112018\Cff\Python\PhoneBot\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "E:\DropboxBACKUP14112018\Cff\Python\PhoneBot\venv\lib\site-packages\appium\webdriver\webdriver.py", line 227, in start_session
response = self.execute(RemoteCommand.NEW_SESSION, parameters)
File "E:\DropboxBACKUP14112018\Cff\Python\PhoneBot\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "E:\DropboxBACKUP14112018\Cff\Python\PhoneBot\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
What did I try to fix this issue?
After reading some similar issues here in Appium github, I tried different things but without any successful result:
- clean cache with “npm cache clean --force”
- Remove all files of my %TEMP% folder
- Update last version of JAVA, build-tools, sdkmanager,npm,appium-uiautomator2-driver and Appium.
- Restart my computer
- Restart the smartphone.
- I run Appium as Administrator.
- Reinstall Desktop Appium server.
- Run Appium with Advanced Option>Allow session override.
- I removed "appium-uiautomator2-driver " from smartphone and cleaned cache.
All these solutions were suggested in similar issues but they didn’t work with me. Does anyone has any idea what is the source of my problem?
Issue Analytics
- State:
- Created 3 years ago
- Comments:12
Top GitHub Comments
It might be that a fallback (
sign.jar
) is used in such case. Like I said, look at the method above to understand the flow better.The flow is more complicated than it looks. You could check https://github.com/appium/appium-adb/blob/07ddb4bc1a31955c15d0bab6a726dbd5a29d5af5/lib/tools/apk-signing.js#L143 to get more details on how it works.
To disable the cache feature set the
remoteAppsCacheLimit
capability to zero.