I have recently migrated my project to use AndroidX, and have configured test orchestrator for my espresso tests on gradle using the following docs:
https://developer.an
Purely by guessing, I changed the following in my gradle config
from:
testOptions { execution 'ANDROID_TEST_ORCHESTRATOR' }
to
testOptions { execution 'ANDROIDX_TEST_ORCHESTRATOR' }
and all seems to work.