question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run any Android Emulator Chrome Tests

See original GitHub issue

The problem

Unable to get any Emulator Test working, regardless of how simple the setup. Regardless of the Appium version/chrome version/android emulator version. Tried everything I can find, still cannot get it working.

Most common error is

[W3C] Encountered internal error running command: Error: Failed to start Chromedriver session: An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to forward ports to device emulator-5554: . unknown error: The adb command failed. Extra response: <>.
[W3C]   (Driver info: chromedriver=2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1),platform=Windows NT 10.0.17134 x86_64)
[W3C]     at Object.wrappedLogger.errorAndThrow (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:78:13)
[W3C]     at Chromedriver.errorAndThrow [as start] (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-chromedriver\lib\chromedriver.js:441:11)
[HTTP] <-- POST /wd/hub/session 500 57894 ms - 1372

Environment

  • Appium version (or git revision) that exhibits the issue: 1.8.0, 1.9.0, 1.10.0, 1.13.0
  • Last Appium version that did not exhibit the issue (if applicable): Not sure
  • Desktop OS/version used to run Appium: Windows 10
  • Node.js version (unless using Appium.app|exe): 6.9.0
  • Npm or Yarn package manager: NPM
  • Mobile platform/version under test: Android
  • Real device or emulator/simulator: Emulator
  • Appium CLI or Appium.app|exe: Appium CLI and/or Appium.exe

Details

Appium: 1.13.0 Android Debug Bridge version 1.0.41 Version 29.0.3-5806383 Android: tried 10, 9, 8 & 7 all same issue ChromeDrivers: 2.44, 2.45, 2.46

Link to Appium logs

https://gist.github.com/Priestime/8cd75d7a29b2c36d749b5a834dd26847

Code To Reproduce Issue [ Good To Have ]

I’ve copied the code from https://github.com/appium-boneyard/sample-code/blob/master/sample-code/examples/java/generic/src/test/java/AndoridBrowserLocalTest.java and run within Intelij. constantly getting the error in the log

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

3reactions
vliubeznycommented, Sep 16, 2019

I’ve faced with this issue after update of platform-tools (29.0.2 => 29.0.3) After update to the latest version (29.0.4) the issue has gone

0reactions
skumar1122commented, Oct 1, 2019

I’ve faced with this issue after update of platform-tools (29.0.2 => 29.0.3) After update to the latest version (29.0.4) the issue has gone

Is this new update causing any errors ? Screenshot 2019-10-01 at 15 11 30

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >
Unable to run test on Android emulator Chrome browser
I am facing a blocking issue where Katalon Studio hitting the below error while I chose to run test in my emulator /...
Read more >
Unable to open chrome browser in virtual agent's emulator
I want to open chrome browser in virtual agent's emulator say; Google Pixel 3 GoogleAPI Emulator. I tried by uploading chrome.apk but still ......
Read more >
Android Emulator app test failing with the error ... - Sauce Labs
Android Emulator app test failing with the error "The Sauce VMs failed to start the browser or device". Follow Not yet followed by...
Read more >
Unable to open the Chrome browser in android emulator by ...
Its because of using snapshot option while creating AVD devices. I didn't check that box now. Which seems to be resolved this issue....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found