UiAutomator exited unexpectedly with code 0, signal null

Hi Team,

We are facing the beloww issue when we run the script.

[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\ANDROID-SDK\platform-tools\adb.exe -P 5037 -s 421096f49bba744f shell kill 7152’
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\ANDROID-SDK\platform-tools\adb.exe -P 5037 -s 421096f49bba744f shell kill 7152’
[ADB] Cannot kill process 7152 in 1000 ms. Trying to force kill…
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\ANDROID-SDK\platform-tools\adb.exe -P 5037 -s 421096f49bba744f shell kill -9 7152’
[UiAutomator] Starting UIAutomator
[ADB] Creating ADB subprocess with args: [“-P”,5037,“-s”,“421096f49bba744f”,“shell”,“uiautomator”,“runtest”,“AppiumBootstrap.jar”,“-c”,“io.appium.android.bootstrap.Bootstrap”,“-e”,“pkg”,“com.idfcbank.mobileBanking”,“-e”,“disableAndroidWatchers”,false,“-e”,“acceptSslCerts”,false]
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\ANDROID-SDK\platform-tools\adb.exe -P 5037 -s 421096f49bba744f shell kill 7152’
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\ANDROID-SDK\platform-tools\adb.exe -P 5037 -s 421096f49bba744f shell kill 7152’
[ADB] Cannot kill process 7152 in 1000 ms. Trying to force kill…
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[ADB] Running ‘D:\ANDROID-SDK\platform-tools\adb.exe -P 5037 -s 421096f49bba744f shell kill -9 7152’
[UiAutomator] Starting UIAutomator
[ADB] Creating ADB subprocess with args: [“-P”,5037,“-s”,“421096f49bba744f”,“shell”,“uiautomator”,“runtest”,“AppiumBootstrap.jar”,“-c”,“io.appium.android.bootstrap.Bootstrap”,“-e”,“pkg”,“com.idfcbank.mobileBanking”,“-e”,“disableAndroidWatchers”,false,“-e”,“acceptSslCerts”,false]

[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null
[UiAutomator] Moving to state ‘stopped’

Please help to resolve this issue.

UiAutomator is exiting because of a prior failure. The failure appears to be that it’s unable to kill process 7152. Connect to your device via adb to see what’s going on. You can also try rebooting your device.