I have some startup initializers defined in my manifest file.
<meta-data
android:name="com.myapp.MyInitializer"
android:value="androidx.startup" />
That initializer is being run when I run my instrumented tests, really slowing things down. Is there a way to disable startup when running android instrumented tests?
Then you should remove Automatic initialize components by replacing
with this
Now you have to Manually initialize components whenever you want
Like this.
You can read this for more reference
Manually initialize components