defaultConfig {
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test:rules:1.1.0'
// Optional -- Hamcrest library
androidTestImplementation 'org.hamcrest:hamcrest-library:1.3'
// Optional -- UI testing with Espresso
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
// Optional -- UI testing with UI Automator
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
Я пытаюсь написать контрольно-измерительные приборы. Я пытаюсь создать тестовый класс в androidTest / java, но он показывает ошибку для всех android .test классов, даже если я добавил все зависимости в gradle.
![enter image description here](https://i.stack.imgur.com/DEBfs.png)