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.

AppiumDriver fails to install io.appium.settings on Android 12 - API 31 when booting the emultator for the first time.

See original GitHub issue

The problem

AppiumDriver fails to install io.appium.settings on Android 12 - API 31 when booting the emulator for the first time.

Environment

  • Appium version (or git revision) that exhibits the issue: 2.0.0-beta.40
  • Last Appium version that did not exhibit the issue (if applicable): -
  • Desktop OS/version used to run Appium: Ubuntu 20.10
  • Node.js version (unless using Appium.app|exe): v16.14.2
  • Npm or Yarn package manager: 8.13.2
  • Mobile platform/version under test: Android 12 (API 31)
  • Real device or emulator/simulator: emultator (Pixel_5_API_31)
  • Appium CLI or Appium.app|exe: -
  • Espresso Driver: 2.8.1

Details

Appium/Espresso driver fails to install io.appium.settings when using an emulator with Android 12 (API 31) when booting for the first time (emulator just created or data wiped beforehand). If I close the emulator and run the test again everything works fine. This does NOT happen when using Android 11 (API 30) or Android 10 (API 29).

I think this might be related to https://github.com/appium/appium/issues/17200 - I had the same error when using espresso 2.7.1 with API 31, after upgrading espresso to 2.8.1 the error changed. And because this happens only when booting for the first time - I watched the emulator with log in real time and it seems it tries to install the io.appium.settings before Android has finished loading.

I tried using the timeout options, but it had no effect.

  .setAvdLaunchTimeout(Duration.ofMinutes(10))
  .setAvdReadyTimeout(Duration.ofMinutes(10))
  .setAndroidInstallTimeout(Duration.ofMinutes(10))
  .setAdbExecTimeout(Duration.ofMinutes(10))

Link to Appium logs

API 29 log API 30 log API 31 log - first boot API 31 logcat - first boot API 31 log - second run

Code To Reproduce Issue [ Good To Have ]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Aug 3, 2022

Describe the stcktrace you get in adb logs and the steps to reproduce it. Perhaps, they could advice some more reliable way of emulator startup detection if such behaviour is expected (which I have doubts).

1reaction
mykola-mokhnachcommented, Aug 3, 2022

The update has been published

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't run tests unless I restart io.appium.settings - Issues/Bugs
settings in adb . How it woks is: The app will open and close several times, but no tests will run. Then I...
Read more >
Getting Error io.appium.settings could not be assigned a valid ...
Hi I am getting issue: INSTALL_FAILED_INSUFFICIENT_STORAGE: Package io.appium.settings could not be assigned a valid UID Operating system: ...
Read more >
Troubleshooting - Appium
Make sure your system is set up appropriately (i.e., XCode is updated, Android SDK is installed and ANDROID_HOME is set. Make sure the...
Read more >
Appium driver install uiautomator2 can't install - Support
Hi. When I try to install uiautomator2 on Mac I have this error appium driver install uiautomator2 info Appium Setting NODE_PATH to ...
Read more >
Not able to run appium on my new android device
<init>(AppiumDriver.java:132) at io.appium.java_client.android. ... Ignored error while installing Appium Settings helper: 'Error executing ...
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