So I'm trying to test my activity following googles instructions here: https://developer.android.com/guide/components/activities/testing
But the code launchActivity<MyActivity>()
does not work. Do I need to define launchActivity as a rule or is there a library I need to import in gradle?
These are the imports I already have
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'