According to the Android Espresso documentation to date: Add Espresso dependencies. To add Espresso dependencies to your project, complete the following steps.
I try to sync my project, but it keeps failing with the following error messages: Failed to resolve: androidx.{specific activity name here}.espresso:espresso- ...