In Android Studio I was getting to “No tests were found” error when trying to run Android Instrumented Tests (androidTest).
In another Android project of mine I had no such problems.
None of the suggestions from stack overflow helped.
In my case, I had the following statement the testOptions block in build.gradle(:app) in my problematic Android project.
testOptions {
. . .
execution 'ANDROIDX_TEST_ORCHESTRATOR'
}
Removing / commenting out execution 'ANDROIDX_TEST_ORCHESTRATOR' resolved my problem.
I hope this helps!