Unable to remove port forward 'Error executing adbExec

[Appium] Welcome to Appium v1.7.2

[Appium] Welcome to Appium v1.7.2

[Appium] Non-default server args:

[Appium] Non-default server args:

[Appium] port: 54352

[Appium] port: 54352

[Appium] loglevel: info

[Appium] loglevel: info

[Appium] chromeDriverPort: 54353

[Appium] chromeDriverPort: 54353

[Appium] tmpDir: C:\Users\Anjani\AppData\Local\Temp\\Katalon\Appium\Temp1522750569218

[Appium] tmpDir: C:\Users\Anjani\AppData\Local\Temp\\Katalon\Appium\Temp1522750569218

[Appium] Appium REST http interface listener started on 0.0.0.0:54352

[Appium] Appium REST http interface listener started on 0.0.0.0:54352

[HTTP] → GET /wd/hub/status {}

[HTTP] → GET /wd/hub/status {}

[HTTP] ← GET /wd/hub/status 200 20 ms - 72

[HTTP] → GET /wd/hub/status {}

[HTTP] ← GET /wd/hub/status 200 3 ms - 72

[HTTP] ← GET /wd/hub/status 200 20 ms - 72

[HTTP] → GET /wd/hub/status {}

[HTTP] ← GET /wd/hub/status 200 3 ms - 72

[HTTP] → POST /wd/hub/session {“desiredCapabilities”:{“app”:“D:\\Anjani\\QA\\APK\\com.sreerag.pixwall.apk”,“autoGrantPermissions”:true,“automationName”:“uiautomator2”,“deviceName”:“motorola Moto G (5) Plus 7.0”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platform”:“ANDROID”,“platformName”:“Android”,“udid”:“ZY223ZMPG6”},“capabilities”:{“desiredCapabilities”:{“app”:“D:\\Anjani\\QA\\APK\\com.sreerag.pixwall.apk”,“autoGrantPermissions”:true,“automationName”:“uiautomator2”,“deviceName”:“motorola Moto G (5) Plus 7.0”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platform”:“ANDROID”,“platformName”:“Android”,“udid”:“ZY223ZMPG6”},“firstMatch”:[{“platformName”:“android”}]}}

[Appium] Merged W3C capabilities {“desiredCapabilities”:{“app”:"D:\\Anjani\\QA\… into desiredCapabilities object {“app”:"D:\\Anjani\\QA\\APK\\com.sreerag.pixwal…

[Appium] Creating new AndroidUiautomator2Driver (v0.11.0) session

[Appium] Capabilities:

[HTTP] → POST /wd/hub/session {“desiredCapabilities”:{“app”:“D:\\Anjani\\QA\\APK\\com.sreerag.pixwall.apk”,“autoGrantPermissions”:true,“automationName”:“uiautomator2”,“deviceName”:“motorola Moto G (5) Plus 7.0”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platform”:“ANDROID”,“platformName”:“Android”,“udid”:“ZY223ZMPG6”},“capabilities”:{“desiredCapabilities”:{“app”:“D:\\Anjani\\QA\\APK\\com.sreerag.pixwall.apk”,“autoGrantPermissions”:true,“automationName”:“uiautomator2”,“deviceName”:“motorola Moto G (5) Plus 7.0”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platform”:“ANDROID”,“platformName”:“Android”,“udid”:“ZY223ZMPG6”},“firstMatch”:[{“platformName”:“android”}]}}

[Appium] app: D:\Anjani\QA\APK\com.sreerag.pixwall.apk

[Appium] Merged W3C capabilities {“desiredCapabilities”:{“app”:"D:\\Anjani\\QA\… into desiredCapabilities object {“app”:"D:\\Anjani\\QA\\APK\\com.sreerag.pixwal…

[Appium] autoGrantPermissions: true

[Appium] Creating new AndroidUiautomator2Driver (v0.11.0) session

[Appium] automationName: uiautomator2

[Appium] Capabilities:

[Appium] deviceName: motorola Moto G (5) Plus 7.0

[Appium] app: D:\Anjani\QA\APK\com.sreerag.pixwall.apk

[Appium] fullReset: false

[Appium] autoGrantPermissions: true

[Appium] newCommandTimeout: 1800

[Appium] automationName: uiautomator2

[Appium] noReset: true

[Appium] deviceName: motorola Moto G (5) Plus 7.0

[Appium] platform: ANDROID

[Appium] fullReset: false

[Appium] platformName: android

[Appium] newCommandTimeout: 1800

[Appium] udid: ZY223ZMPG6

[Appium] noReset: true

[BaseDriver] The following capabilities were provided, but are not recognized by appium: platform.

[Appium] platform: ANDROID

[BaseDriver] Session created with session id: 017e0ef4-d779-4001-b7cb-d9c1a0ff96cc

[Appium] platformName: android

[BaseDriver] Using local app ‘D:\Anjani\QA\APK\com.sreerag.pixwall.apk’

[Appium] udid: ZY223ZMPG6

[BaseDriver] The following capabilities were provided, but are not recognized by appium: platform.

[BaseDriver] Session created with session id: 017e0ef4-d779-4001-b7cb-d9c1a0ff96cc

[BaseDriver] Using local app ‘D:\Anjani\QA\APK\com.sreerag.pixwall.apk’

[AndroidDriver] Java version is: 1.8.0_102

[ADB] Checking whether adb is present

[ADB] Using adb.exe from C:\Users\Anjani\.katalon\tools\android_sdk\platform-tools\adb.exe

[AndroidDriver] Retrieving device list

[AndroidDriver] Java version is: 1.8.0_102

[ADB] Checking whether adb is present

[ADB] Using adb.exe from C:\Users\Anjani\.katalon\tools\android_sdk\platform-tools\adb.exe

[AndroidDriver] Retrieving device list

[AndroidDriver] Using device: ZY223ZMPG6

[ADB] Checking whether adb is present

[AndroidDriver] Using device: ZY223ZMPG6

[ADB] Checking whether adb is present

[ADB] Checking whether aapt is present

[ADB] Checking whether aapt is present

[UiAutomator2] Unable to remove port forward ‘Error executing adbExec. Original error: ‘Command ‘C\:\\Users\\Anjani\.katalon\\tools\\android_sdk\\platform-tools\\adb.exe -P 5037 -s ZY223ZMPG6 forward --remove tcp\:8200’ exited with code 1’; Stderr: ‘error: listener ‘tcp:8200’ not found’; Code: ‘1’’

[UiAutomator2] Unable to remove port forward ‘Error executing adbExec. Original error: ‘Command ‘C\:\\Users\\Anjani\.katalon\\tools\\android_sdk\\platform-tools\\adb.exe -P 5037 -s ZY223ZMPG6 forward --remove tcp\:8200’ exited with code 1’; Stderr: ‘error: listener ‘tcp:8200’ not found’; Code: ‘1’’

Hi,

Can someone please advice on this. Getting same error.
Emulator is listing in drop down but when i try spying it throws similar error.

Any documentation on how to work with Android Emulators with Katalon will be of great help.

Thanks and Regards,
Rajesh