Android Studio 3.6 Test framework quit unexpectedly, Crash of orchestrator
Got same error in Android Studio 4.1, adding below dependency
androidTestImplementation "androidx.test.espresso:espresso-core:x.x.x"
along with adding
android {
defaultConfig {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
}
solved the problem
Seems like its a Bug of AS 3.6.
According to this thread in Reddit: https://www.reddit.com/r/androiddev/comments/f9xsz2/anyone_else_having_issues_running_androidtest/
It will be fixed in 3.6.2.
I'm on AS 4.1.1 and the bug is still there if you use fragment-testing
artifact. None of the solutions above worked.
In my case what solved the problem was to exclude the core
dependency from the artifact
debugImplementation ("androidx.fragment:fragment-testing:1.2.5", {
exclude group: 'androidx.test', module: 'core'
})
Source