Switched to AndroidX
and received deprecated: import androidx.test.InstrumentationRegistry
.
If I made next import: import androidx.test.platform.app.InstrumentationRegistry
I can't use getContext()
.
Ex:
val context = InstrumentationRegistry.getContext()
.
In build.gradle
:
androidTestImplementation 'androidx.test.ext:junit:1.0.0-beta02'
androidTestImplementation 'androidx.test:runner:1.1.0-beta02'