androidandroid-studioandroid-espressoandroid-testing

"Record espresso test" option is not enabled in Android Studio


The "Record espresso test" option is greyed out in Android Studio.

What are possible reasons for this?

I have installed the Espresso test dependencies and I have an emulator running.


Solution

  • The "Record Espresso Test" menu option is disabled for projects that contain Compose. This is a new behavior in Android Studio Iguana that wasn't mentioned in the release notes, and isn't documented anywhere else as far as I can see.

    It's the presence of Compose in a project that makes the menu option disabled, so if your project uses Compose anywhere, the menu option will be disabled even if you just want to record a test against a non-Compose activity.