android / android-test

An extensive framework for testing Android apps
https://android.github.io/android-test
Apache License 2.0
1.16k stars 315 forks source link

RuntimePermissionsStubber not found #2311

Open simonwalter opened 1 week ago

simonwalter commented 1 week ago

Description

We're trying to use [RuntimePermissionsStubber](https://developer.android.com/reference/androidx/test/espresso/intent/RuntimePermissionsStubber#RuntimePermissionsStubber()) for granting/revoking permissions in UI tests. According to the API signature file, it should be included in the espresso-intents artifact version 3.6.0 and above.

However, we are unable to locate it in the espresso-intents artifact or any other artifact within androidx.test.espresso:

image

Steps to Reproduce

  1. Add androidx.test.espresso:espresso-intents:3.6.1 as an androidTestImplementation dependency.
  2. Try to use or import RuntimePermissionsStubber.

Expected Results

The class should be available for use.

Actual Results

The class is not found.

AndroidX Test and Android OS Versions

androidx.test.espresso:espresso-intents:3.6.1

Link to a public git repo demonstrating the problem:

-