2020-09-26

Android Studio: "androidTest" Raising "java.lang.ClassNotFoundException: Didn't find class"

 

If you are trying to run an androidTest with Android Studio and get the following error:

java.lang.NoClassDefFoundError: Failed resolution of: L....
. . .
Caused by: java.lang.ClassNotFoundException: Didn't find class "..." on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file ...
. . .

Check your build.gradle (:app) File, if you have "minifyEnabled true" enabled in your debug build type

buildTypes {
    debug {
        . . .
        minifyEnabled true
        . . .

Try commenting it out.

I hope it helps.


No comments :

Post a Comment