gpt4 book ai didi

android - 如何在Android Studio中解析 "multiple dex files define Lorg/junit/runner/Runner"

转载 作者:行者123 更新时间:2023-11-30 01:26:09 27 4
gpt4 key购买 nike

我正在尝试在 Android Studio 中运行仪器测试。

我已经研究并尝试了很多,但我无法克服这个错误消息。

我的模块依赖:

(编译)

+--- 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

(安卓测试)

+--- 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

感谢任何帮助

最佳答案

简短的回答是:你不能(轻松地)解决这个问题,因为 JMockit 依赖关系被破坏了。

您可以找到详细说明 here .

关于android - 如何在Android Studio中解析 "multiple dex files define Lorg/junit/runner/Runner",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36401721/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com