Skip to content

Commit 2c0e4ba

Browse files
committed
Apply a workaround to avoid a problem with "2 files found with path 'win32-x86/attach_hotspot_windows.dll'."
See Kotlin/kotlinx.coroutines#2023 for details and the documented workaround
1 parent 3974a69 commit 2c0e4ba

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

app/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ dependencies {
215215
}
216216
testImplementation Libs.coreTesting
217217
testImplementation Libs.junit
218-
testImplementation Libs.kotlinCoroutinesTest
218+
testImplementation (Libs.kotlinCoroutinesTest) {
219+
// workaround for https://github.com/Kotlin/kotlinx.coroutines/issues/2023
220+
exclude group: "org.jetbrains.kotlinx", module: "kotlinx-coroutines-debug"
221+
}
219222
testImplementation Libs.mockitoCore
220223
testImplementation Libs.threeTenBp
221224
testImplementation Libs.truth

commons-testing/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ android {
3131
dependencies {
3232

3333
implementation Libs.junit
34-
implementation Libs.kotlinCoroutinesTest
34+
implementation (Libs.kotlinCoroutinesTest) {
35+
// workaround for https://github.com/Kotlin/kotlinx.coroutines/issues/2023
36+
exclude group: "org.jetbrains.kotlinx", module: "kotlinx-coroutines-debug"
37+
}
3538
implementation Libs.liveDataKtx
3639
implementation Libs.truth
3740
api Libs.mockitoKotlin

0 commit comments

Comments
 (0)