Unable to launch application in Android real device in Appium Desktop 1.5

Hi All,

Installed latest Appium Desktop 1.5. Used JSON:

{
“deviceName”: “7163ee71”,
“platformName”: “Android”,
“appPackage”: " honeycomb.trunk.hgs",
“appActivity”: “MainActivity”
}

Appium crashed with the message below:

Could not obtain source: {“cause”:{“sessionId”:“042c3113-ef31-4dcb-91af-d5712b90e09e”,“status”:13,“value”:{“message”:“An unknown server-side error occurred while processing the command. Original error: Android bootstrap socket crashed: Error: This socket has been ended by the other party”}},“jsonwire-error”:{“detail”:“An unknown server-side error occurred while processing the command.”,“status”:13,“summary”:“UnknownError”},“message”:"[source()] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: Android bootstrap socket crashed: Error: This socket
has been ended by the other party",“status”:13}

As soon as the application launches in Appium, it crashes - unable to inspect elements.

Is this because I’m missing some desired capabilities? Please repond

Thanks All…

Hie @dineshdhruv,

re-Install appium from command line with “–no-shrinkwrap” flag to override.

npm install -g appium --no-shrinkwrap

Hi Sachin,

Tried with the flag, but still get the error below. Also, on my Windows 7 when I navigate to SDK/Tools/bin and SDK/Tools to view ‘uiautomatorviewer’ / ‘Monitor’ they do not open, command prompt briefly opens then it closes quickly.

Apr 06, 2018 7:01:33 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
hi
Exception in thread “main” org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Android bootstrap socket crashed: Error: This socket has been ended by the other party (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:31.527Z’
System info: host: ‘DA112’, ip: ‘192.168.1.6’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘9.0.4’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities {appActivity: MainActivity, appPackage: honeycomb.trunk.hgs, databaseEnabled: false, desired: {appActivity: MainActivity, appPackage: honeycomb.trunk.hgs, deviceName: Android Device, platform: ANDROID, platformName: android}, deviceManufacturer: ZTE, deviceModel: Z798BL, deviceName: 7163ee71, deviceScreenSize: 480x854, deviceUDID: 7163ee71, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: true, platform: ANDROID, platformName: ANDROID, platformVersion: 6.0.1, takesScreenshot: true, warnings: {}, webStorageEnabled: false}
Session ID: a7f083b2-f1c0-4e27-83cc-d436cc1b0c95
*** Element info: {Using=accessibility id, value=SKIP}
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)
at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)
at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:129)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:600)
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 org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:370)
at io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:62)
at io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.findElement(AndroidDriver.java:1)
at io.appium.java_client.FindsByAccessibilityId.findElementByAccessibilityId(FindsByAccessibilityId.java:37)
at Base.main(Base.java:51)

Please respond.

Thanks
Dinesh