Appium Desktop 1.1.1 doesn't support Android Nougat 7.0 in Lenevo K6 Power but works on Marsh mellow 6.0.1 on the same platform

Hi,

I am using Android Nougat 7.0 with appium desktop 1.1.1 but unable to start a session, Every time gives the below error

Error
An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: ‘Command ‘‘C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe’ -P 5037 -s 344ed6de install C:\Users\Tanmoy\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk’ exited with code 1’; Stderr: ‘Failed to install C:\Users\Tanmoy\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package io.appium.unlock signatures do not match the previously installed version; ignoring!]’; Code: ‘1’

but amazingly when i tried with other Android like 6.0.1 or 5.1.1 session started successfully.
Unable to find a solution. Any one can help me out here?
Server logs below

[Appium] Welcome to Appium v1.6.5 (REV d249b82ed2155821c28550df4a1794e40a051271)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:“C:\Users\Tanmoy\Desktop\NXP APK\next-wallet-release-2.06-122.apk”,“deviceName”:“344ed6de”,“platformName”:“Android”,“platformVersion”:“7.0”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“C:\Users\Tanmoy\Desktop\NXP APK\next-wallet-release-2.06-122.apk”,“deviceName”:“344ed6de”,“platformName”:“Android”,“platformVersion”:“7.0”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1501588480222 (17:24:40 GMT+0530 (India Standard Time))
[Appium] Creating new AndroidDriver (v1.20.0) session
[Appium] Capabilities:
[Appium] app: ‘C:\Users\Tanmoy\Desktop\NXP APK\next-wallet-release-2.06-122.apk’
[Appium] deviceName: ‘344ed6de’
[Appium] platformName: ‘Android’
[Appium] platformVersion: ‘7.0’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[AndroidDriver] AndroidDriver version: 1.20.0
[BaseDriver] The following capabilities were provided, but are not recognized by appium: connectHardwareKeyboard.
[BaseDriver] Session created with session id: 8631d80d-bc84-4a12-b4b9-3efed1f83ad1
[AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_121
[ADB] Checking whether adb is present
[ADB] Using adb.exe from C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android ‘7.0’
[ADB] Setting device id to 344ed6de
[ADB] Getting device platform version
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“344ed6de”,“shell”,“getprop”,“ro.build.version.release”]
[AndroidDriver] Using device: 344ed6de
[ADB] Checking whether adb is present
[ADB] Using adb.exe from C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe
[ADB] Setting device id to 344ed6de
[BaseDriver] Using local app ‘C:\Users\Tanmoy\Desktop\NXP APK\next-wallet-release-2.06-122.apk’
[AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[ADB] Running ‘C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“344ed6de”,“wait-for-device”]
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“344ed6de”,“shell”,“echo”,“ping”]
[Logcat] Starting logcat capture
[AndroidDriver] Pushing settings apk to device…
[ADB] Getting install status for io.appium.settings
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“344ed6de”,“shell”,“pm”,“list”,“packages”,“io.appium.settings”]
[ADB] App is installed
[ADB] Getting package info for io.appium.settings
[ADB] Getting connected devices…
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from C:\Program Files (x86)\Android\android-sdk\build-tools\20.0.0\aapt.exe
[ADB] 1 device(s) connected
[ADB] Running ‘C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“344ed6de”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[ADB] Cannot read version codes of C:\Users\Tanmoy\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\io.appium.settings\app\build\outputs\apk\settings_apk-debug.apk and/or io.appium.settings. Assuming correct app version is already installed
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“344ed6de”,“shell”,“getprop”,“ro.build.version.sdk”]
[ADB] Device API level: 24
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“344ed6de”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[AndroidDriver] Pushing unlock helper app to device…
[ADB] Running ‘C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“344ed6de”,“install”,“C:\Users\Tanmoy\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk”]
[ADB] Running ‘C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“344ed6de”,“install”,“C:\Users\Tanmoy\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk”]
[AndroidDriver] Shutting down Android driver
[AndroidDriver] Called deleteSession but bootstrap wasn’t active
[Logcat] Stopping logcat capture
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“344ed6de”,“shell”,“am”,“force-stop”,“io.appium.unlock”]
[AndroidDriver] Not cleaning generated files. Add clearSystemFiles capability if wanted.
[MJSONWP] Encountered internal error running command: Error: Error executing adbExec. Original error: ‘Command ‘‘C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe’ -P 5037 -s 344ed6de install C:\Users\Tanmoy\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk’ exited with code 1’; Stderr: ‘Failed to install C:\Users\Tanmoy\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package io.appium.unlock signatures do not match the previously installed version; ignoring!]’; Code: ‘1’
at ADB.execFunc$ (C:\Users\Tanmoy\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:228:13)
at tryCatch (C:\Users\Tanmoy\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\Tanmoy\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (C:\Users\Tanmoy\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\Tanmoy\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session 500 24196 ms - 837

Hi Tany_S,

I am facing the same issue, did you find any solution for the above problem?

Thank you
Chak

Hi Chak
for the above issue follow the below steps for solution
-> Go to menu of your phone
-> Search for “Unlock” and “Appium Setting” (Those are automatically generated. Once you delete in the next run appium will again generate the same)
-> Delete both of icon

hope this will help