scala-android / sbt-android-protify

Live-coding and hot-deploy for Android
Apache License 2.0
136 stars 8 forks source link

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

Open phleemac opened 8 years ago

phleemac commented 8 years ago

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 https://github.com/pfn/android-sdk-plugin/issues/232 for my build setup.

pfn commented 8 years ago

Instrumented tests will not work with protify.

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