I found in Google Example instrumented test something like this:
@Before
public void launchActivity() {
ActivityScenario.launch(MainActivity.class);
}
But i can't implemented ActivityScenario
in my project.
I should add something to gradle or what ?
If I past import androidx.test.core.app.ActivityScenario;
no help, i have test
red in AndroidStudio.
How to implement AndroidScenario ?
Try adding androidx.test:core:<currentVersion>
dependency to your gradle.
Like "androidx.test:core:1.0.0-beta02"
or whatever the current version is.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With