I\'m having trouble importing some of the Android UI testing framework classes - I just can\'t figure out what is going wrong!
This is my class:
@Run
From androidX use
androidTestImplementation 'androidx.test:rules:1.1.1'
androidTestImplementation 'androidx.test:runner:1.1.1'
In your dependencies section in your app level build.gradle file
for eg :
dependencies {
androidTestImplementation 'androidx.test:rules:1.1.1'
androidTestImplementation 'androidx.test:runner:1.1.1'
}
Then import
import androidx.test.rule.ActivityTestRule;
If you migrated to AndroidX, use this:
androidTestImplementation 'androidx.test:rules:1.1.1'
androidTestImplementation 'androidx.test:runner:1.1.1'