appium / appium-espresso-driver

Espresso integration for Appium
Apache License 2.0
191 stars 75 forks source link

Socket Hang Up Error #917

Open pascarella opened 1 year ago

pascarella commented 1 year ago

Issue

Trying to switch from UiAutomator2 to Espresso/Compose. Works fine with uiautomator2, but not working with espresso driver, getting socket hang up error. Tried all the typical fixes for socket hang up error as well as Stack Overflow advice with no luck.

Environment

Desired Capabilities

{
  "platformName": "Android",
  "appium:platformVersion": "13",
  "appium:automationName": "espresso",
  "appium:deviceName": "emulator-5554",
  "appium:app": "/Users/pascarella/Desktop/androidApp-local-debug-3.apk",
  "appium:ignoreHiddenApiPolicyError": true,
  "appium:driver": "compose",
  "appium:forceEspressoRebuild": true,
  "appium:showGradleLog": true,
  "appium:skipUnlock": true,
  "appium:systemPort": "8210"
}

Appium Log

https://gist.github.com/pascarella/62c95e68b066cd5da1fc76c2cceaea4d

pr4bh4sh commented 12 months ago

It's not an appium espresso issue. You'll need to put exceptions to exclude the files/lib from pro-guard obfuscation rules.

java.lang.NoSuchMethodError: No static method isTraceInProgress()Z in class Landroidx/compose/runtime/ComposerKt; or its super classes (declaration of 'androidx.compose.runtime.ComposerKt'