Code: Select all
@RunWith(AndroidJUnit4::class)
class MyTest {
@Test
fun canary() {
}
}
< /code>
Ich rannte in: < /p>
6 files found with path 'META-INF/LICENSE.md'.
6 files found with path 'META-INF/LICENSE-notice.md'.
< /code>
Ich habe beide zu meinem Build hinzugefügt.gradle -Paketoptionen: < /p>
packagingOptions {
exclude 'META-INF/INDEX.LIST'
exclude 'META-INF/LICENSE.md'
}
< /code>
Danach bin ich in die folgende Ausnahme gestoßen: < /p>
2 files found with path 'dispatcher.jar'.
Adding a packagingOptions block may help, please refer to
https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/dsl/ResourcesPackagingOptions
for more information
testImplementation 'org.mockito:mockito-core:5.3.1'
testImplementation 'org.mockito:mockito-inline:5.2.0'
testImplementation "org.mockito.kotlin:mockito-kotlin:3.2.0"
testImplementation "io.mockk:mockk:1.13.5"
androidTestImplementation 'org.mockito:mockito-core:5.3.1'
androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito-inline:2.28.3'
androidTestImplementation "org.mockito.kotlin:mockito-kotlin:3.2.0"
androidTestImplementation "io.mockk:mockk-android:1.13.5"
< /code>
Mögliche Ursache aufgrund der Verwendung von Mockk und Mockito im selben Projekt? /p>
Gibt es eine einfache Möglichkeit, doppelte Dateien in Android Studio zu finden, damit ich zumindest weitere Informationen dazu erhalten kann, welche Abhängigkeiten das Problem verursachen? < /p>