# Unable to run sample Android Mobile Test

**URL:** <https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [August 27, 2019, 8:17pm UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221 "2019-08-27T20:17:49Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![shirazmuthalif](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@shirazmuthalif](https://forum.katalon.com/u/shirazmuthalif)\
**Post date:** [August 27, 2019, 8:17pm UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221/1 "2019-08-27T20:17:49Z")

</div>

Got all the prerequisites installed and attempted to run the sample Android mobile tests however getting the following errors: Any help is appreciated.

Unable to start app at: ‘C:\Users\shirazmuthalif\Katalon Studio\T1.prj\androidapp\APIDemos.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: Error getting device API level. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\shirazmuthalif\.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 2ebeae2c shell getprop ro.build.version.sdk’ exited with code 3221226356’; Stderr: ‘’; Code: ‘3221226356’  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘670JSN2’, ip: ‘10.27.6.129’, 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: Error getting device API level. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\shirazmuthalif\.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 2ebeae2c shell getprop ro.build.version.sdk’ exited with code 3221226356’; Stderr: ‘’; Code: ‘3221226356’  
at getResponseForW3CError (C:\Users\shirazmuthalif\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:826:9)  
at asyncHandler (C:\Users\shirazmuthalif\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\protocol.js:447:37)  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘670JSN2’, ip: ‘10.27.6.129’, 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:460)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:374)  
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:56)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:74)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)  
at Verify Correct Alarm Message.run(Verify Correct Alarm Message:24)  
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(TestCaseMain.java:105)  
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)  
at TempTestCase1566931155566.run(TempTestCase1566931155566.groovy:21)  
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:460)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:374)  
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:56)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:74)  
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)  
at Script1529986178839.run(Script1529986178839.groovy:24)  
… 11 more  
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Error getting device API level. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\shirazmuthalif\.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 2ebeae2c shell getprop ro.build.version.sdk’ exited with code 3221226356’; Stderr: ‘’; Code: ‘3221226356’  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘670JSN2’, ip: ‘10.27.6.129’, 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: Error getting device API level. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\shirazmuthalif\.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 2ebeae2c shell getprop ro.build.version.sdk’ exited with code 3221226356’; Stderr: ‘’; Code: ‘3221226356’  
at getResponseForW3CError (C:\Users\shirazmuthalif\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:826:9)  
at asyncHandler (C:\Users\shirazmuthalif\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\protocol.js:447: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)  
… 38 more  
)

---

<div class="post-metadata">

**Author:** ![monfareddm](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/monfareddm/32/7707_2.png) [@monfareddm](https://forum.katalon.com/u/monfareddm)\
**Post date:** [August 28, 2019, 1:29pm UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221/2 "2019-08-28T13:29:40Z")

</div>

Hi @shirazmuthalif

Could you tell us please some more information:

1- What is the exact IP/Port you defined for the appium before starting it? something like 0.0.0.0:4723  
2- Are you define the Desired Capabilities here: “Project” menu / “Settings” / “Desired Capabilities” / “Mobile” / “Android” ? If yes please leave here a screenshot of this section.  
3- Did the Adb server running? It means does the CMD/Powershell return you device adb ID by typing this?  
adb devices  
4- What does the version of the Appium?  
5- What does the version of the Katalon?  
6- What is your os? (e.g. Windows 10)

Regards  
Mohammad

---

<div class="post-metadata">

**Author:** ![shirazmuthalif](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@shirazmuthalif](https://forum.katalon.com/u/shirazmuthalif)\
**Post date:** [August 28, 2019, 9:50pm UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221/3 "2019-08-28T21:50:23Z")

</div>

Hi Mohammed,

1. You are correct its the default - 0.0.0.0:4723
2. Screen shot attached

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/8/8cd5080a8afa16af8b49c9cbc285433c47f1899b.png)

1. does not recognize adb however I have a samsung tablet and katalon does show the device when executing the test case

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/6/6617e2ca91d70e08befae98a7154a78d6ab21568.png)

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/e/e05d5f830ffb8f6b4c12c1ea37fc1b828d14ccc5.png)

1. Appium version - v1.14.2
2. Katalon version - Version: 6.3.2 / Build: 4
3. Windows 10 Enterprise

Thank you for taking a look to help resolve this.

Shiraz.

---

<div class="post-metadata">

**Author:** ![shirazmuthalif](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@shirazmuthalif](https://forum.katalon.com/u/shirazmuthalif)\
**Post date:** [September 4, 2019, 8:34pm UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221/4 "2019-09-04T20:34:52Z")

</div>

Any support on this is appreciated from the community of from Katalon.

---

<div class="post-metadata">

**Author:** ![monfareddm](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/monfareddm/32/7707_2.png) [@monfareddm](https://forum.katalon.com/u/monfareddm)\
**Post date:** [September 26, 2019, 5:52am UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221/5 "2019-09-26T05:52:31Z")

</div>

**1. Set your all android path properly:**

Add a variable in **system environment** as mention below.

**ANDROID\_HOME** : C:\Users[Your login name]\AppData\Local\Android\Sdk (Or any PATH that your android SDK located)

**JAVA\_HOME** : C:\Program Files\Java\jdk1.8.0\_172

**ANDROID\_SWT** : C:\Users[Your login name]\AppData\Local\Android\Sdk\tools\lib\x86\_64

**ANDROID\_PLATFORM\_TOOLS** : C:\Users[Your login name]\AppData\Local\Android\Sdk\platform-tools

Add below mention Path in **Path Variable** in the system environment. (If your SDK located in C:\Users[Your login name]\AppData\Local\Android\Sdk\ )

C:\Program Files\Java\jdk\bin;

C:\Users[Your login name]\AppData\Local\Android\Sdk\tools\bin;

C:\Users[Your login name]\AppData\Local\Android\Sdk\tools;

C:\Users[Your login name]\AppData\Local\Android\Sdk\platform-tools;

C:\Program Files\nodejs\node\_modules\npm\bin;

C:\Users[Your login name]\AppData\Local\Android\Sdk;

C:\Users[Your login name]\AppData\Local\Android\Sdk\tools\lib\x86\_64\swt.jar;

> By completing these steps your “Adb devices” command should works.

**2. Insert Desired Capabilities here** : “Project” menu / “Settings” / “Desired Capabilities” / “Mobile” / “Android” like this

 ![1](https://europe1.discourse-cdn.com/katalon/original/2X/f/f7d8a3e96f6c852bf6e73981e4c81b831ef08c4c.png)

**3.Downgrade the version of the appium to 1.12.x** , because the Katalon isn’t working with version 1.13 and 1.14.

Regards

---

<div class="post-metadata">

**Author:** ![yashkabra143](https://avatars.discourse-cdn.com/v4/letter/y/dc4da7/32.png) [@yashkabra143](https://forum.katalon.com/u/yashkabra143)\
**Post date:** [December 12, 2019, 9:35pm UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221/6 "2019-12-12T21:35:29Z")

</div>

I am getting this error please help me

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: Error executing adbExec. Original error: ‘Command ‘C:\Users\yashk\.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 523ae6b1 shell pm install -g /data/local/tmp/appium\_cache/d9685eb331a81625742f66f9cf88cb6ab32937d0.apk’ exited with code 1’; Stderr: ‘’; Code: ‘1’  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-A0JOB4K’, ip: ‘192.168.1.11’, 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: Error executing adbExec. Original error: ‘Command ‘C:\Users\yashk\.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 523ae6b1 shell pm install -g /data/local/tmp/appium\_cache/d9685eb331a81625742f66f9cf88cb6ab32937d0.apk’ exited with code 1’; Stderr: ‘’; Code: ‘1’  
at getResponseForW3CError (C:\Users\yashk\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:826:9)  
at asyncHandler (C:\Users\yashk\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\protocol.js:447:37)  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-A0JOB4K’, ip: ‘192.168.1.11’, 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: Error executing adbExec. Original error: ‘Command ‘C:\Users\yashk\.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 523ae6b1 shell pm install -g /data/local/tmp/appium\_cache/d9685eb331a81625742f66f9cf88cb6ab32937d0.apk’ exited with code 1’; Stderr: ‘’; Code: ‘1’  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-A0JOB4K’, ip: ‘192.168.1.11’, 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: Error executing adbExec. Original error: ‘Command ‘C:\Users\yashk\.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 523ae6b1 shell pm install -g /data/local/tmp/appium\_cache/d9685eb331a81625742f66f9cf88cb6ab32937d0.apk’ exited with code 1’; Stderr: ‘’; Code: ‘1’  
at getResponseForW3CError (C:\Users\yashk\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:826:9)  
at asyncHandler (C:\Users\yashk\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\protocol.js:447:37)  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-A0JOB4K’, ip: ‘192.168.1.11’, 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: Error executing adbExec. Original error: ‘Command ‘C:\Users\yashk\.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 523ae6b1 shell pm install -g /data/local/tmp/appium\_cache/d9685eb331a81625742f66f9cf88cb6ab32937d0.apk’ exited with code 1’; Stderr: ‘’; Code: ‘1’  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-A0JOB4K’, ip: ‘192.168.1.11’, 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: Error executing adbExec. Original error: ‘Command ‘C:\Users\yashk\.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 523ae6b1 shell pm install -g /data/local/tmp/appium\_cache/d9685eb331a81625742f66f9cf88cb6ab32937d0.apk’ exited with code 1’; Stderr: ‘’; Code: ‘1’  
at getResponseForW3CError (C:\Users\yashk\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:826:9)  
at asyncHandler (C:\Users\yashk\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\protocol.js:447: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

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [December 13, 2019, 3:14am UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221/7 "2019-12-13T03:14:13Z")

</div>

> [@yashkabra143](#):
>
> C:\Users\yashk.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 523ae6b1 shell pm install -g /data/local/tmp/appium\_cache/d9685eb331a81625742f66f9cf88cb6ab32937d0.apk’

@yashkabra143,

Please run this command in terminal and share us the console output:

```auto
C:\Users\yashk\.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s 523ae6b1 shell pm install -g /data/local/tmp/appium_cache/d9685eb331a81625742f66f9cf88cb6ab32937d0.apk’

```

---

<div class="post-metadata">

**Author:** ![yashkabra143](https://avatars.discourse-cdn.com/v4/letter/y/dc4da7/32.png) [@yashkabra143](https://forum.katalon.com/u/yashkabra143)\
**Post date:** [December 13, 2019, 11:11am UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221/8 "2019-12-13T11:11:40Z")

</div>

@duyluong I run this cmd in the terminal and I am getting this error

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/3/3dbd2e7a61d16200b61da009026ac354fd50201d.png)  
Currently I am using this npm and appium version  
 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/3/37496b6a92ce3a32e74a46d0aac983c82eb4aed7.png)  
Please let me know asap  
Thanks!!

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [December 16, 2019, 3:30am UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221/10 "2019-12-16T03:30:55Z")

</div>

@yashkabra143,

Please try this solution: [Katalon - Cannot start Splash activities](http://forum.katalon.com/t/katalon-cannot-start-splash-activities/19333/5)  
or install your app on your device then use [Start Existing Application](https://docs.katalon.com/katalon-studio/docs/mobile-keyword-start-existing-apps.html) keyword to start your app

---

<div class="post-metadata">

**Author:** ![william22fm](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/william22fm/32/16104_2.png) [@william22fm](https://forum.katalon.com/u/william22fm)\
**Post date:** [June 1, 2021, 10:30am UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221/12 "2021-06-01T10:30:37Z")

</div>

I am getting this error please help me

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: Error executing adbExec. Original error: ‘Command ‘C:\Users\Admin\.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 6b8539a2 shell ‘settings delete global hidden\_api\_policy\_pre\_p\_apps;settings delete global hidden\_api\_policy\_p\_apps;settings delete global hidden\_api\_policy’’ exited with code 255’; Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS

java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS  
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2340)  
at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1405)  
at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1388)  
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:603)  
at android.content.ContentProvider.call(ContentProvider.java:2162)  
at android.content.ContentProvider$Transport.call(ContentProvider.java:481)  
at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:399)  
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:281)  
at android.os.ShellCommand.exec(ShellCommand.java:104)  
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:49)  
at android.os.Binder.shellCommand(Binder.java:881)  
at android.os.Binder.onTransact(Binder.java:765)  
at android.os.Binder.execTransactInternal(Binder.java:1021)  
at android.os.Binder.execTransact(Binder.java:994)  
Security exception: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS

java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS  
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2340)  
at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1405)  
at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1388)  
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:603)  
at android.content.ContentProvider.call(ContentProvider.java:2162)  
at android.content.ContentProvider$Transport.call(ContentProvider.java:481)  
at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:399)  
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:281)  
at android.os.ShellCommand.exec(ShellCommand.java:104)  
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:49)  
at android.os.Binder.shellCommand(Binder.java:881)  
at android.os.Binder.onTransact(Binder.java:765)  
at android.os.Binder.execTransactInternal(Binder.java:1021)  
at android.os.Binder.execTransact(Binder.java:994)  
Security exception: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS

java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS  
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2340)  
at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1405)  
at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1388)  
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:603)  
at android.content.ContentProvider.call(ContentProvider.java:2162)  
at android.content.ContentProvider$Transport.call(ContentProvider.java:481)  
at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:399)  
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:281)  
at android.os.ShellCommand.exec(ShellCommand.java:104)  
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:49)  
at android.os.Binder.shellCommand(Binder.java:881)  
at android.os.Binder.onTransact(Binder.java:765)  
at android.os.Binder.execTransactInternal(Binder.java:1021)  
at android.os.Binder.execTransact(Binder.java:994)’; Code: ‘255’  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘ITAM-MFB-180044’, ip: ‘192.168.189.1’, 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: Error executing adbExec. Original error: ‘Command ‘C:\Users\Admin\.katalon\tools\android\_sdk\platform-tools\adb.exe -P 5037 -s 6b8539a2 shell ‘settings delete global hidden\_api\_policy\_pre\_p\_apps;settings delete global hidden\_api\_policy\_p\_apps;settings delete global hidden\_api\_policy’’ exited with code 255’; Stderr: 'Security exception: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS

java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS  
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2340)  
at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1405)  
at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1388)  
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:603)  
at android.content.ContentProvider.call(ContentProvider.java:2162)  
at android.content.ContentProvider$Transport.call(ContentProvider.java:481)  
at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:399)  
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:281)  
at android.os.ShellCommand.exec(ShellCommand.java:104)  
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:49)  
at android.os.Binder.shellCommand(Binder.java:881)  
at android.os.Binder.onTransact(Binder.java:765)  
at android.os.Binder.execTransactInternal(Binder.java:1021)  
at android.os.Binder.execTransact(Binder.java:994)  
Security exception: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS

java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS  
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2340)  
at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1405)  
at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1388)  
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:603)  
at android.content.ContentProvider.call(ContentProvider.java:2162)  
at android.content.ContentProvider$Transport.call(ContentProvider.java:481)  
at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:399)  
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:281)  
at android.os.ShellCommand.exec(ShellCommand.java:104)  
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:49)  
at android.os.Binder.shellCommand(Binder.java:881)  
at android.os.Binder.onTransact(Binder.java:765)  
at android.os.Binder.execTransactInternal(Binder.java:1021)  
at android.os.Binder.execTransact(Binder.java:994)  
Security exception: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS

java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS  
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2340)  
at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1405)  
at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1388)  
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:603)  
at android.content.ContentProvider.call(ContentProvider.java:2162)  
at android.content.ContentProvider$Transport.call(ContentProvider.java:481)  
at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:399)  
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:281)  
at android.os.ShellCommand.exec(ShellCommand.java:104)  
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:49)  
at android.os.Binder.shellCommand(Binder.java:881)  
at android.os.Binder.onTransact(Binder.java:765)  
at android.os.Binder.execTransactInternal(Binder.java:1021)  
at android.os.Binder.execTransact(Binder.java:994)’; Code: ‘255’  
at getResponseForW3CError (C:\Users\Admin\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\errors.js:804:9)  
at asyncHandler (C:\Users\Admin\AppData\Roaming\npm\node\_modules\appium\node\_modules\appium-base-driver\lib\protocol\protocol.js:380:37)

---

<div class="post-metadata">

**Author:** ![kristian021998](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kristian021998/32/16104_2.png) [@kristian021998](https://forum.katalon.com/u/kristian021998)\
**Post date:** [February 14, 2022, 6:47am UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221/13 "2022-02-14T06:47:22Z")

</div>

@duyluong I am getting this error when I try to start spy on android devices, please help me

java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Original error: Connection reset  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-U3LMCNN’, ip: ‘10.8.0.26’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_282’  
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:122)  
Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Original error: Connection reset  
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
System info: host: ‘DESKTOP-U3LMCNN’, ip: ‘10.8.0.26’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_282’  
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:498)  
at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:480)  
at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:539)  
at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startMobileApp(MobileInspectorController.java:196)  
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: java.net.SocketException: Connection reset  
at okio.Okio$2.read(Okio.java:140)  
at okio.AsyncTimeout$2.read(AsyncTimeout.java:237)  
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:355)  
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:227)  
at okhttp3.internal.http1.Http1Codec.readHeaderLine(Http1Codec.java:215)  
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189)  
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at org.openqa.selenium.remote.internal.OkHttpClient$Factory$1.lambda$createClient$1(OkHttpClient.java:152)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)  
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)  
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)  
at okhttp3.RealCall.execute(RealCall.java:77)  
at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:103)  
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:105)  
… 23 more

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [February 23, 2022, 3:34am UTC](https://forum.katalon.com/t/unable-to-run-sample-android-mobile-test/32221/14 "2022-02-23T03:34:45Z")

</div>

> [@kristian021998](#):
>
> Caused by: java.net.SocketException: Connection reset  
> at okio.Okio$2.read(Okio.java:140)

@kristian021998

Which Appium version you are using?  
Does this happen with other apps?  
Do you configure proxy in Katalon Studio?
