Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket Hang Up Error #917

Open
pascarella opened this issue Sep 25, 2023 · 1 comment
Open

Socket Hang Up Error #917

pascarella opened this issue Sep 25, 2023 · 1 comment

Comments

@pascarella
Copy link

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

  • Appium version: v2.1.3
  • Desktop OS: Mac OS
  • Node.js version: v20.5.1
  • Npm: 9.8.0
  • Mobile platform/version under test: Android 13
  • Real device or emulator/simulator: emulator

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
Copy link
Contributor

pr4bh4sh commented Oct 24, 2023

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants