1
我試圖在Android Studio中運行檢測測試。如何在Android Studio中解析「多個dex文件定義Lorg/junit/runner/Runner」
我已經研究過並嘗試了很多,但是我無法越過這條錯誤消息。
我模塊的依賴關係:
(編譯)
+--- com.crashlytics.sdk.android:crashlytics:2.5.5
| +--- com.crashlytics.sdk.android:answers:1.3.6
| | \--- io.fabric.sdk.android:fabric:1.3.10
| +--- com.crashlytics.sdk.android:crashlytics-core:2.3.8
| | +--- com.crashlytics.sdk.android:answers:1.3.6 (*)
| | \--- io.fabric.sdk.android:fabric:1.3.10
| +--- io.fabric.sdk.android:fabric:1.3.10
| \--- com.crashlytics.sdk.android:beta:1.1.4
+--- com.jakewharton:butterknife:7.0.1
+--- io.realm:realm-android:0.87.5
+--- com.android.support:appcompat-v7:23.0.1
| \--- com.android.support:support-v4:23.0.1
| \--- com.android.support:support-annotations:23.0.1
+--- com.android.support:cardview-v7:23.0.1
+--- com.android.support:recyclerview-v7:23.0.1
| +--- com.android.support:support-v4:23.0.1 (*)
| \--- com.android.support:support-annotations:23.0.1
+--- com.android.support:design:23.0.1
| +--- com.android.support:support-v4:23.0.1 (*)
| \--- com.android.support:appcompat-v7:23.0.1 (*)
+--- io.reactivex:rxandroid:1.1.0
| \--- io.reactivex:rxjava:1.1.0
+--- io.reactivex:rxjava:1.1.0
\--- project :domain
(androidTest)
+--- org.jmockit:jmockit:1.22
\--- com.android.support.test:runner:0.4
+--- com.android.support:support-annotations:23.0.1
+--- junit:junit:4.12
| \--- org.hamcrest:hamcrest-core:1.3
\--- com.android.support.test:exposed-instrumentation-api-publish:0.4
任何幫助讚賞
你的build.gradle contians? multiDexEnabled true –
我已經嘗試過了......結果就像是一個ZipException,因爲有多個文件或東西 – krzysiek