Facing a Problem while running a program in Appium version 1.6.4

[Appium] Welcome to Appium v1.6.4
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:“C:\Users\Rishabh\Downloads\KOOVS_com.koovs.fashion.apk”,“automationName”:“Appium”,“platformName”:“Android”,“deviceName”:“ZY223D7FN7”,“platformVersion”:“7.0”}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“C:\Users\Rishabh\Downloads\KOOVS_com.koovs.fashion.apk”,“automationName”:“Appium”,“platformName”:“Android”,“deviceName”:“ZY223D7FN7”,“platformVersion”:“7.0”},null,null,null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1495889491418 (18:21:31 GMT+0530 (India Standard Time))
[Appium] Creating new AndroidDriver (v1.17.1) session
[Appium] Capabilities:
[Appium] app: ‘C:\Users\Rishabh\Downloads\KOOVS_com.koovs.fashion.apk’
[Appium] automationName: ‘Appium’
[Appium] platformName: ‘Android’
[Appium] deviceName: ‘ZY223D7FN7’
[Appium] platformVersion: ‘7.0’
[AndroidDriver] AndroidDriver version: 1.17.1
[BaseDriver] Session created with session id: e88f10ae-dbd9-466b-b048-3d8937ba3326
[AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_102
[ADB] Checking whether adb is present
[ADB] Using adb.exe from E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\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 ZY223D7FN7
[ADB] Getting device platform version
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY223D7FN7”,“shell”,“getprop”,“ro.build.version.release”]
[AndroidDriver] Using device: ZY223D7FN7
[ADB] Checking whether adb is present
[ADB] Using adb.exe from E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\platform-tools\adb.exe
[ADB] Setting device id to ZY223D7FN7
[BaseDriver] Using local app ‘C:\Users\Rishabh\Downloads\KOOVS_com.koovs.fashion.apk’
[AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[ADB] Running ‘E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY223D7FN7”,“wait-for-device”]
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY223D7FN7”,“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 ‘E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY223D7FN7”,“shell”,“pm”,“list”,“packages”,“io.appium.settings”]
[ADB] App is installed
[ADB] Getting package info for io.appium.settings
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY223D7FN7”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\build-tools\19.1.0\aapt.exe
[ADB] Cannot read version codes of C:\Users\Rishabh\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 ‘E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY223D7FN7”,“shell”,“getprop”,“ro.build.version.sdk”]
[ADB] Device API level: 24
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY223D7FN7”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[AndroidDriver] Pushing unlock helper app to device…
[ADB] Running ‘E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY223D7FN7”,“install”,“C:\Users\Rishabh\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk”]
[ADB] Running ‘E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY223D7FN7”,“install”,“C:\Users\Rishabh\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 ‘E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“ZY223D7FN7”,“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 ‘E:\Appium\android-sdk_r24.3.4-windows\android-sdk-windows\platform-tools\adb.exe -P 5037 -s ZY223D7FN7 install C:\Users\Rishabh\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\Rishabh\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\Rishabh\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:200:13)
at tryCatch (C:\Users\Rishabh\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\Rishabh\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\Rishabh\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\Rishabh\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 15538 ms - 856

uninstall on phone Appium app “Unlock” and retry

how to unlock a application . Is there any specific steps which we can follow .can you please guide me to get through this problem if possible

I think your Device hast one previously installed app with some different signature…
if that’s the case uninstall previous version
and if not you Need to resign your apk to your system signature or make change in manifest file of apk

like @upendraupadhyay said again - uninstall appium unlock app from your test phone. and repeat test. appium will install new unlock app.