android / android/android-test

Tests fail to launch with timed out waiting for process on Android 11

Open
#1,064 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

Description

### Description

When trying to launch espresso tests on Android 11, the connection times out with following error:
```
$ adb shell am instrument -w -m --no-window-animation -e debug false -e class '***' ***.test/***.InstrumentationRunner
Timed out waiting for process (***) to appear on RAM_API_30 [emulator-5554].
```

When running the same tests on Android 10, everything is fine instead:
`Connected to process 6597 on device 'Pixel_3a_A29_anim_off_ [emulator-5556]'.`

AGP 4.2.2. Android Studio Arctic Fox 2020.3.1

### Steps to Reproduce

### Expected Results

Tests should launch

### Actual Results

Tests fail to launch on Android 11

### AndroidX Test and Android OS Versions

1.4.0, Android 11

### Link to a public git repo demonstrating the problem:

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Espresso instrumentation command shown in the issue on the Android 11 emulator, then compare it with Android 10 using the listed AGP and AndroidX Test versions. Done means the Android 11 tests launch without the process-timeout error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.