I wanted to run the following test:
package com.xxx.yyy; import android.content.Context; import androidx.test.InstrumentationRegistry; import androidx.test.runn
Found the solution by myself. I updated to AndroidX, therefor I needed also to update my build.gradle file from:
build.gradle
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
to
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"