переключился на AndroidX
и получил устаревшее: import androidx.test.InstrumentationRegistry
если я сделал следующий импорт: import androidx.test.platform.app.InstrumentationRegistry
я не могу getContext()
ex: val context = InstrumentationRegistry.getContext()
В build.gradle:
androidTestImplementation 'androidx.test.ext:junit:1.0.0-beta02'
androidTestImplementation 'androidx.test:runner:1.1.0-beta02'