Unable to launch main activity error

Aleksandra Pavlyshina said:

Hello all,

I think I had a similar issue:
[UiAutomator2] UiAutomator2 did not start the activity we were waiting for, ‘com.xxx.app/…SplashActivity’. Starting it ourselves
I was also getting the same error when trying to run the app in Appium.
But there is a workaround in specifying the desired capability
in Appium and in Katalon Studio
(Project/Settings/Execution/Default/Mobile/Android):
“appWaitActivity”: “*”

This setting helped me, and I was able to run my mobile app.


  

Great ! It worked for me too. It’s driving me nuts !
Where did you get this trick ?
Thank you very much for the help.

Aleksandra Pavlyshina said:

Hello all,

I think I had a similar issue:
[UiAutomator2] UiAutomator2 did not start the activity we were waiting for, ‘com.xxx.app/…SplashActivity’. Starting it ourselves
I was also getting the same error when trying to run the app in Appium.
But there is a workaround in specifying the desired capability
in Appium and in Katalon Studio
(Project/Settings/Execution/Default/Mobile/Android):
“appWaitActivity”: “*”

This setting helped me, and I was able to run my mobile app.


  

Thanks for sharing, It worked for me

Hello Guys!
Hello guys!
I’m still having the similar issue:
[UiAutomator2] UiAutomator2 did not start the activity we were waiting for, ‘com…/232…SplashActivity’. Starting it ourselves
Another suggestion for this issue? The setting “appWaitActivity”: “*” it’s no works for me.

Hi @delvisecheverria,

A few things you could try:

  1. Make sure you’re using Appium 1.8.1
  2. In addition to setting the appWaitActivity, also set the appWaitPackage to your app’s package name, e.g. com.mycompany.myapp

If those don’t work, could you please include what you see in the Katalon console log where it lists the “Desired Capabilities”?

Hope this helps,

Chris

Hi @Chris_Trevarthen
I tried what you suggest me.

  1. Make sure you’re using Appium 1.8.1
  2. In addition to setting the appWaitActivity , also set the appWaitPackage to your app’s package name, e.g. com.mycompany.myapp

its does not work to me.

My katalon console logs.

[35m[Appium][39m Welcome to Appium v1.8.1
[35m[Appium][39m Non-default server args:
[35m[Appium][39m   port: 56127
[35m[Appium][39m   loglevel: info
[35m[Appium][39m   chromeDriverPort: 56128
[35m[Appium][39m   tmpDir: C:\Users\DECHEV~1\AppData\Local\Temp\\Katalon\Appium\Temp1551286767141
[35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:56127
[35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/status[39m
[35m[HTTP][39m [90m{}[39m
[35m[HTTP][39m [37m<-- GET /wd/hub/status [39m[32m200[39m [90m19 ms - 83[39m
[35m[HTTP][39m [90m[39m
[35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/status[39m
[35m[HTTP][39m [90m{}[39m
[35m[HTTP][39m [37m<-- GET /wd/hub/status [39m[32m200[39m [90m5 ms - 83[39m
[35m[HTTP][39m [90m[39m
[35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m
[35m[HTTP][39m [90m{"desiredCapabilities":{"app":"C:\\Users\\myuser\\Katalon Studio\\MobileTestProjectSample\\androidapp\\Mobileapp.apk","appWaitActivity ":"com.company.Mobileappphone","appWaitPackage":"com.company.Mobileappphone","autoGrantPermissions":true,"automationName":"uiautomator2","deviceName":"samsung SM-T810 (Android 7.0)","fullReset":false,"newCommandTimeout":1800,"noReset":true,"platform":"ANDROID","platformName":"Android","udid":"3300724550441351"},"capabilities":{"desiredCapabilities":{"app":"C:\\Users\\myuser\\Katalon Studio\\MobileTestProjectSample\\androidapp\\Mobileapp.apk","appWaitActivity ":"com.company.Mobileappphone","appWaitPackage":"com.company.Mobileappphone","autoGrantPermissions":true,"automationName":"uiautomator2","deviceName":"samsung SM-T810 (Android 7.0)","fullReset":false,"newCommandTimeout":1800,"noReset":true,"platform":"ANDROID","platformName":"Android","udid":"3300724550441351"},"firstMatch":[{"platformName":"android"}]}}[39m
[35m[Appium][39m Could not parse W3C capabilities: 'deviceName' can't be blank. Falling back to JSONWP protocol.
[35m[Appium][39m The following capabilities were provided in the JSONWP desired capabilities that are missing in W3C capabilities: ["app","appWaitActivity ","appWaitPackage","autoGrantPermissions","automationName","deviceName","fullReset","newCommandTimeout","noReset","platform","platformName","udid"]. Falling back to JSONWP protocol.
[35m[Appium][39m Creating new AndroidUiautomator2Driver (v1.12.0) session
[35m[Appium][39m Capabilities:
[35m[Appium][39m   app: C:\Users\myuser\Katalon Studio\MobileTestProjectSample\androidapp\Mobileapp.apk
[35m[Appium][39m   appWaitActivity : com.company.Mobileappphone
[35m[Appium][39m   appWaitPackage: com.company.Mobileappphone
[35m[Appium][39m   autoGrantPermissions: true
[35m[Appium][39m   automationName: uiautomator2
[35m[Appium][39m   deviceName: samsung SM-T810 (Android 7.0)
[35m[Appium][39m   fullReset: false
[35m[Appium][39m   newCommandTimeout: 1800
[35m[Appium][39m   noReset: true
[35m[Appium][39m   platform: ANDROID
[35m[Appium][39m   platformName: Android
[35m[Appium][39m   udid: 3300724550441351
[35m[BaseDriver][39m The following capabilities were provided, but are not recognized by appium: appWaitActivity , platform.
[35m[BaseDriver][39m Session created with session id: 3b4e3224-36dc-4978-a3f8-62811ea3fa78
[35m[BaseDriver][39m Using local app 'C:\Users\myuser\Katalon Studio\MobileTestProjectSample\androidapp\Mobileapp.apk'
[35m[AndroidDriver][39m Java version is: 1.8.0_181
[35m[ADB][39m Checking whether adb is present
[35m[ADB][39m Found 1 'build-tools' folders under 'C:\Users\myuser\.katalon\tools\android_sdk' (newest first):
[35m[ADB][39m     C:/Users/myuser/.katalon/tools/android_sdk/build-tools/28.0.2
[35m[ADB][39m Using adb.exe from C:\Users\myuser\.katalon\tools\android_sdk\platform-tools\adb.exe
[35m[AndroidDriver][39m Retrieving device list
[35m[AndroidDriver][39m Using device: 3300724550441351
[35m[ADB][39m Using the alternative activity name detection method because of: Could not find apkanalyzer.bat in C:\Users\myuser\.katalon\tools\android_sdk\platform-tools\apkanalyzer.bat,C:\Users\myuser\.katalon\tools\android_sdk\emulator\apkanalyzer.bat,C:\Users\myuser\.katalon\tools\android_sdk\tools\apkanalyzer.bat,C:\Users\myuser\.katalon\tools\android_sdk\tools\bin\apkanalyzer.bat,C:\Users\myuser\.katalon\tools\android_sdk\build-tools\28.0.2\apkanalyzer.bat. Do you have the Android SDK installed at 'C:\Users\myuser\.katalon\tools\android_sdk'?
[35m[ADB][39m Checking whether aapt is present
[35m[ADB][39m Using aapt.exe from C:\Users\myuser\.katalon\tools\android_sdk\build-tools\28.0.2\aapt.exe
[35m[ADB][39m Extracting package and launch activity from manifest
[35m[ADB][39m Package name: 'com.company.Mobileappphone'
[35m[ADB][39m Main activity name: 'md5146f6bdb715599e366c9b557dc48e893.SplashActivity'
[35m[ADB][39m Getting device platform version
[35m[ADB][39m Using apksigner.bat from C:\Users\myuser\.katalon\tools\android_sdk\build-tools\28.0.2\apksigner.bat
[35m[ADB][39m Checking whether zipalign is present
[35m[ADB][39m Using zipalign.exe from C:\Users\myuser\.katalon\tools\android_sdk\build-tools\28.0.2\zipalign.exe
[35m[ADB][39m io.appium.uiautomator2.server was successfully uninstalled
[35m[ADB][39m io.appium.uiautomator2.server.test was successfully uninstalled
[35m[AndroidDriver][39m setDeviceLanguageCountry requires language or country.
[35m[AndroidDriver][39m Got language: 'null' and country: 'null'
[35m[ADB][39m Successfully extracted 78 strings from 'C:\Users\myuser\Katalon Studio\MobileTestProjectSample\androidapp\Mobileapp.apk' resources for '(default)' configuration
[35m[UiAutomator2][39m Starting uiautomator2 server 1.12.0
[35m[UiAutomator2][39m Using UIAutomator2 server from 'C:\Users\myuser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' and test from 'C:\Users\myuser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[35m[UiAutomator2][39m Running command: 'adb -s 3300724550441351 shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner'
[35m[UiAutomator2][39m Waiting up to 20000ms for UiAutomator2 to be online...
[35m[AndroidDriver][39m Screen already unlocked, doing nothing
[35m[UiAutomator2][39m UiAutomator2 did not start the activity we were waiting for, 'com.company.Mobileappphone/md5146f6bdb715599e366c9b557dc48e893.SplashActivity'. Starting it ourselves

Hi @delvisecheverria,

Sorry, I should have been more clear about the settings (they should have different values):

appWaitPackage: com.company.Mobileappphone
appWaitActivity: *

Hope this helps,

Chris

1 Like

Hi, ive just currently downloaded the latest version of Katalon Studios on the download section of the site, after abit of tinkering around with it ive also encountered the same error as presented, I wanted to try the fixes suggested around but Ive come across a problem, I cant find a dropdown to the Execution option

Hi @troy_1129,

The settings you want are actually on the Desired Capabilities->Mobile->Android screen:

Hope this helps,

Chris

1 Like

Hi @Chris_Trevarthen it works for me, must have 2 list desired that you mention above, thankyouuu :slight_smile:

2 Likes

Good Morning…
Sorry to back with this, but trying to Record on Mobile Android app with Katalon_Studio_Windows_64-6.3.3 .

I tried all your tricks but it still failed, please I’m open for all that can help me :

appium Log :slight_smile:
e[35m[Appium]e[39m Welcome to Appium v1.12.1
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m port: 53642
e[35m[Appium]e[39m loglevel: info
e[35m[Appium]e[39m chromeDriverPort: 53643
e[35m[Appium]e[39m tmpDir: C:\Users\NGASLE~1\AppData\Local\Temp\Katalon\Appium\Temp1579268339455
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:53642
e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[90m{}e[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m10 ms - 68e[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[90m{}e[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m2 ms - 68e[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
e[35m[HTTP]e[39m e[90m{“desiredCapabilities”:{“app”:“C:\Users\ngaslepro\Downloads\Telephone Simple Dialer_v2.1_apkpure.com.apk”,“noReset”:true,“appWaitActivity”:"",“appWaitPackage”:“com.android.vending”,“deviceId”:“H3XDU17C05002383”,“deviceName”:“HUAWEI WAS-LX1A (Android 7.0)”,“fullReset”:false,“platform”:“ANDROID”,“newCommandTimeout”:1800,“platformVersion”:“7.0”,“automationName”:“uiautomator2”,“autoGrantPermissions”:true,“platformName”:“Android”,“udid”:“H3XDU17C05002383”,“systemPort”:53650},“capabilities”:{“firstMatch”:[{“appium:app”:“C:\Users\ngaslepro\Downloads\Telephone Simple Dialer_v2.1_apkpure.com.apk”,“appium:appWaitActivity”:"",“appium:appWaitPackage”:“com.android.vending”,“appium:autoGrantPermissions”:true,“appium:automationName”:“uiautomator2”,“deviceId”:“H3XDU17C05002383”,“appium:deviceName”:“HUAWEI WAS-LX1A (Android 7.0)”,“appium:fullReset”:false,“appium:newCommandTimeout”:1800,“appium:noReset”:true,“platform”:“ANDROID”,“platformName”:“android”,“appium:platformVersion”:“7.0”,"appium:se[39m
e[35m[BaseDriver]e[39m The capabilities [“deviceId”,“platform”] are not standard capabilities and should have an extension prefix
e[35m[Appium]e[39m Appium v1.12.1 creating new AndroidUiautomator2Driver (v1.33.0) session
e[35m[Appium]e[39m Capabilities:
e[35m[Appium]e[39m deviceId: H3XDU17C05002383
e[35m[Appium]e[39m platform: ANDROID
e[35m[Appium]e[39m platformName: android
e[35m[Appium]e[39m app: C:\Users\ngaslepro\Downloads\Telephone Simple Dialer_v2.1_apkpure.com.apk
e[35m[Appium]e[39m appWaitActivity: *
e[35m[Appium]e[39m appWaitPackage: com.android.vending
e[35m[Appium]e[39m autoGrantPermissions: true
e[35m[Appium]e[39m automationName: uiautomator2
e[35m[Appium]e[39m deviceName: HUAWEI WAS-LX1A (Android 7.0)
e[35m[Appium]e[39m fullReset: false
e[35m[Appium]e[39m newCommandTimeout: 1800
e[35m[Appium]e[39m noReset: true
e[35m[Appium]e[39m platformVersion: 7.0
e[35m[Appium]e[39m systemPort: 53650
e[35m[Appium]e[39m udid: H3XDU17C05002383
e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by appium: deviceId, platform.
e[35m[BaseDriver]e[39m Session created with session id: c206cc50-3127-4363-993e-dd343072ae4c
e[35m[BaseDriver]e[39m Using local app ‘C:\Users\ngaslepro\Downloads\Telephone Simple Dialer_v2.1_apkpure.com.apk’
e[35m[ADB]e[39m Checking whether adb is present
e[35m[ADB]e[39m Found 1 ‘build-tools’ folders under ‘C:\Users\ngaslepro.katalon\tools\android_sdk’ (newest first):
e[35m[ADB]e[39m C:/Users/ngaslepro/.katalon/tools/android_sdk/build-tools/29.0.2
e[35m[ADB]e[39m Using adb.exe from C:\Users\ngaslepro.katalon\tools\android_sdk\platform-tools\adb.exe
e[35m[AndroidDriver]e[39m Retrieving device list
e[35m[AndroidDriver]e[39m Using device: H3XDU17C05002383
e[35m[ADB]e[39m Using the alternative activity name detection method because of: Could not find apkanalyzer.bat in C:\Users\ngaslepro.katalon\tools\android_sdk\platform-tools\apkanalyzer.bat,C:\Users\ngaslepro.katalon\tools\android_sdk\emulator\apkanalyzer.bat,C:\Users\ngaslepro.katalon\tools\android_sdk\tools\apkanalyzer.bat,C:\Users\ngaslepro.katalon\tools\android_sdk\tools\bin\apkanalyzer.bat,C:\Users\ngaslepro.katalon\tools\android_sdk\build-tools\29.0.2\apkanalyzer.bat. Do you have the Android SDK installed at ‘C:\Users\ngaslepro.katalon\tools\android_sdk’?
e[35m[ADB]e[39m Checking whether aapt is present
e[35m[ADB]e[39m Using aapt.exe from C:\Users\ngaslepro.katalon\tools\android_sdk\build-tools\29.0.2\aapt.exe
e[35m[ADB]e[39m Extracting package and launch activity from manifest
e[35m[ADB]e[39m Package name: ‘com.kenzap.simple_dialer’
e[35m[ADB]e[39m Main activity name: ‘com.kenzap.simple_dialer.ui.MainActivity’
e[35m[ADB]e[39m Using apksigner.bat from C:\Users\ngaslepro.katalon\tools\android_sdk\build-tools\29.0.2\apksigner.bat
e[35m[UiAutomator2]e[39m Server packages are not going to be (re)installed
e[35m[UiAutomator2]e[39m Starting UIAutomator2 server 3.4.0
e[35m[UiAutomator2]e[39m Using UIAutomator2 server from ‘C:\Users\ngaslepro\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v3.4.0.apk’ and test from ‘C:\Users\ngaslepro\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’
e[35m[UiAutomator2]e[39m Waiting up to 30000ms for UiAutomator2 to be online…
e[35m[WD Proxy]e[39m Got an unexpected response: {“code”:“ECONNRESET”}
e[35m[AndroidDriver]e[39m Screen already unlocked, doing nothing
e[35m[UiAutomator2]e[39m UiAutomator2 did not start the activity we were waiting for, ‘com.android.vending/*’. Starting it ourselves
e[35m[HTTP]e[39m e[37m<-- POST /wd/hub/session e[39me[31m500e[39m e[90m38136 ms - 1327e[39m
e[35m[HTTP]e[39m e[90me[39m

Hi @frngassa,

It looks like there is a mismatch between the Desired Capabilities, which has a setting appWaitPackage set to com.android.vending and the application you’re testing has a package com.kenzap.simple_dialer.

In the Desired Capabilities section for Android, can you try removing the appWaitPackage setting?

Hope this helps,

Chris

Hi,

I am getting below error on trying to start the mobile recorder. Can someone pease help me in resolving this?
java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\MM0C85041\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘USRIRILP00405’, ip: ‘192.168.0.107’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\MM0C85041\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
at getResponseForW3CError (C:\Users\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
at asyncHandler (C:\Users\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:388:37)
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘USRIRILP00405’, ip: ‘192.168.0.107’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: SwipeableAndroidDriver
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:49)
at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12.run(MobileLocalAppComposite.java:474)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘USRIRILP00405’, ip: ‘192.168.0.107’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: 'Command ‘C:\Users\\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall ’ exited with code 1’; Stderr: ‘’; Code: ‘1’
at getResponseForW3CError (C:\Users\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
at asyncHandler (C:\Users\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:388:37)
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘USRIRILP00405’, ip: ‘192.168.0.107’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: SwipeableAndroidDriver
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:84)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:85)
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(SwipeableAndroidDriver.java:24)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:497)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:479)
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:458)
at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startMobileApp(MobileInspectorController.java:191)
at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12$1.call(MobileLocalAppComposite.java:479)
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.startThreadAndWait(ProgressMonitorDialogWithThread.java:36)
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:48)
… 2 more
Caused by: java.lang.reflect.InvocationTargetException
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)
… 22 more
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\MM0C85041\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘USRIRILP00405’, ip: ‘192.168.0.107’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\MM0C85041\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
at getResponseForW3CError (C:\Users\MM0C85041\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
at asyncHandler (C:\Users\MM0C85041\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:388:37)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
… 23 more

Appium version: v1.16.0
Java version: “1.8.0_241”

Hi @MM0C85041,

Could you please try downgrading to Appium 1.15.1?

— Chris

Hi Chris,

Thank you. I downgraded my appium to 1.15.1 and I don’t see that error anymore. However I see an issue while executing the test case. Could this still be an issue with the appium version?

02-04-2020 11:53:16 AM Test Cases/TC_Feb2

Elapsed time: 18.252s

Test Cases/TC_Feb2 FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to start app at: ‘C:\Users\MM0C85041\Desktop\LG Stylo 5\minus1-tmobileRelease-1.8.12-206-e4f105d-20200120185300.signed.apk’ (Root cause: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\MM0C85041\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘USRIRILP00405’, ip: ‘192.168.0.107’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\MM0C85041\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
at getResponseForW3CError (C:\Users\MM0C85041\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
at asyncHandler (C:\Users\MM0C85041\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:388:37)
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘USRIRILP00405’, ip: ‘192.168.0.107’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: SwipeableAndroidDriver
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:84)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:85)
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(SwipeableAndroidDriver.java:24)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:497)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:479)
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:458)
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:372)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.doCall(StartApplicationKeyword.groovy:49)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.call(StartApplicationKeyword.groovy)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:51)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:40)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:72)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:75)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)
at TC_Feb2.run(TC_Feb2:18)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1580845992873.run(TempTestCase1580845992873.groovy:23)
Caused by: java.lang.reflect.InvocationTargetException
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:84)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:85)
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(SwipeableAndroidDriver.java:24)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:497)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:479)
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:458)
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:372)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.doCall(StartApplicationKeyword.groovy:49)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.call(StartApplicationKeyword.groovy)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:51)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:40)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:72)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:75)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)
at Script1580753126100.run(Script1580753126100.groovy:18)
… 10 more
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\MM0C85041\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘USRIRILP00405’, ip: ‘192.168.0.107’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\MM0C85041\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
at getResponseForW3CError (C:\Users\MM0C85041\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
at asyncHandler (C:\Users\MM0C85041\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:388:37)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
… 37 more
)
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:50)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:40)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:23)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:51)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:40)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:72)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:75)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)
at TC_Feb2.run(TC_Feb2:18)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1580845992873.run(TempTestCase1580845992873.groovy:23)
Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\MM0C85041\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘USRIRILP00405’, ip: ‘192.168.0.107’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\MM0C85041\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
at getResponseForW3CError (C:\Users\MM0C85041\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
at asyncHandler (C:\Users\MM0C85041\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:388:37)
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘USRIRILP00405’, ip: ‘192.168.0.107’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: SwipeableAndroidDriver
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:84)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:85)
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(SwipeableAndroidDriver.java:24)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:497)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:479)
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:458)
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:372)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.doCall(StartApplicationKeyword.groovy:49)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.call(StartApplicationKeyword.groovy)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
… 16 more
Caused by: java.lang.reflect.InvocationTargetException
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:84)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:85)
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(SwipeableAndroidDriver.java:24)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:497)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:479)
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:458)
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:372)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.doCall(StartApplicationKeyword.groovy:49)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.call(StartApplicationKeyword.groovy)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:51)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:40)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:72)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:75)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)
at Script1580753126100.run(Script1580753126100.groovy:18)
… 10 more
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\MM0C85041\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘USRIRILP00405’, ip: ‘192.168.0.107’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to uninstall APK. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\MM0C85041\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s LMQ7202b6688f uninstall com.tmobile.m1’ exited with code 1’; Stderr: ‘’; Code: ‘1’
at getResponseForW3CError (C:\Users\MM0C85041\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
at asyncHandler (C:\Users\MM0C85041\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:388:37)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:84)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:85)
at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.(SwipeableAndroidDriver.java:24)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:497)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:479)
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:458)
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:372)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.doCall(StartApplicationKeyword.groovy:49)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.call(StartApplicationKeyword.groovy)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:51)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:40)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:72)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:75)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)
at TC_Feb2.run(TC_Feb2:18)
… 10 more

This solution worked for me. Thanks

Hi @Chris_Trevarthen
I set the parameter
appWaitPackage: com.company.Mobileappphone`
appWaitActivity: *
and my appium version is 1.15.1 and using latest version of Katalon Studio
But still facing the problem

Hi @labib,

Can you share error and/or log you’re seeing?

For your appWaitPackage setting, it needs to match the bundle identifier for your app, so can you confirm that the identifier is actually com.company.Mobileappphone? You can also try removing the appWaitPackage property altogether if you don’t have success with that.

– Chris

hi @Chris_Trevarthen

I have done setup katlon studio for mobile testing. I have run testing on sample project which generated by katlon studio it is working fine but when i try to run testing on my apk it is giving me error. I have generated apk using expo command. Basically this was react native project using expo framework.
I am using these configuration
Node: 12.18.1
katlon: 7.13.0
appium: 1.17.0


can some body help me what should i need to fix this?

Hi @arveenkumar55,

Can you please try downgrading to Appium 1.15.1 to see if that improves things?

npm install -g appium@1.15.1

I’ve typically had good luck with that version.

— Chris

I think your

Location myLocation = locationManager.getLastKnownLocation(provider);
line returning null.