I wanted to run the following test:
package com.xxx.yyy;
import android.content.Context;
import androidx.test.InstrumentationRegistry;
import androidx.test.runn
This error appeared because I changed testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
to testInstrumentationRunner "androidx.test.ext.junit.runners.AndroidJUnit4"
in build.gradle. In LogCat I saw:
java.lang.RuntimeException: Unable to instantiate instrumentation ComponentInfo{com.example.debug.test/androidx.test.ext.junit.runners.AndroidJUnit4}: java.lang.ClassNotFoundException: Didn't find class "androidx.test.ext.junit.runners.AndroidJUnit4" on path: DexPathList[[zip file ...