Closed shymmq closed 7 years ago
Does the same error occur if you set android.support.test.runner.AndroidJUnitRunner
as the default test instrumentation runner?
android {
defaultConfig {
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
}
This time I'm getting
java.lang.ClassNotFoundException: Didn't find class "android.support.test.runner.AndroidJUnitRunner" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /system/vendor/lib64]]
Thank you for your reporting.
If it were a DexOpener issue, AndroidJUnitRunner would be loaded. However, since the same error occurred, I think that this is not a DexOpener issue.
@shymmq I looked into your project and probably identified the cause.
Kluent does not support Android. You should use kluent-android
instead.
dependencies {
androidTestImplementation "org.amshove.kluent:kluent-android:$kluent_version"
}
See the changelog.
Thank you, that was the problem. Everything is working now.
I'm using api 26, with multidex enabled. My gradle.build for app:
I already added a
multidex-config.txt
file in the same directory:Full logcat output:
Could this be related to #9 ?