Skip to content

Error: Didn't find class "com.android.test.runner.MultiDexTestRunner" #10

Description

@phleemac

Hi there,

My project is using android-gradle-build and I can do sbt app/android:test without problem. However, after I setup protify, I got the error ... Testing failed: Instrumentation run failed due to 'java.lang.ClassNotFoundException ... when running sbt app/android:test and in logcat:

    java.lang.RuntimeException: Unable to instantiate instrumentation ComponentInfo{com.sightrepo.android/com.android.test.runner.MultiDexTestRunner}: java.lang.ClassNotFoundException: Didn't find class "com.android.test.runner.MultiDexTestRunner" on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/com.my.package-2/base.apk", zip file "/data/app/com.my.package-2/base.apk"],nativeLibraryDirectories=[/data/app/com.my.package-2/lib/x86, /data/app/com.my.package-2/lib/x86, /vendor/lib, /system/lib]]

See scala-android/sbt-android#232 for my build setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions