Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
phleemac opened this issue Nov 30, 2015 · 1 comment
Open

Comments

@phleemac
Copy link

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.

@pfn
Copy link
Member

pfn commented Nov 30, 2015

Instrumented tests will not work with protify.

Must setup a flavor which disables protify and use non included tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants