Haven't checked latest version but 1.0.9 is depending on the Android Test libraries which causes problems with gradle resolution.
It has a dependency on an old version of androidx.compose.ui:ui-test-junit4, The problem is not that the version is old, but that it has the dependency at all.
See:
| +--- network.chaintech:kmp-date-time-picker:1.0.9
| | \--- network.chaintech:kmp-date-time-picker-android:1.0.9
| | +--- androidx.compose.ui:ui-test-junit4:1.8.2 -> 1.9.0
| | | \--- androidx.compose.ui:ui-test-junit4-android:1.9.0
| | | +--- androidx.activity:activity:1.2.1 -> 1.10.1 (*)
| | | +--- androidx.activity:activity-compose:1.3.0 -> 1.10.1 (*)
| | | +--- androidx.annotation:annotation:1.8.1 -> 1.9.1 (*)
| | | +--- androidx.compose.runtime:runtime-saveable:1.6.0 -> 1.9.0 (*)
| | | +--- androidx.compose.ui:ui-test:1.9.0
| | | | \--- androidx.compose.ui:ui-test-android:1.9.0
| | | | +--- androidx.activity:activity-compose:1.3.0 -> 1.10.1 (*)
| | | | +--- androidx.annotation:annotation:1.8.1 -> 1.9.1 (*)
| | | | +--- androidx.collection:collection:1.4.2 -> 1.5.0 (*)
| | | | +--- androidx.compose.runtime:runtime:1.9.0 (*)
| | | | +--- androidx.compose.ui:ui:1.9.0 (*)
| | | | +--- androidx.compose.ui:ui-graphics:1.9.0 (*)
| | | | +--- androidx.compose.ui:ui-text:1.9.0 (*)
| | | | +--- androidx.compose.ui:ui-unit:1.9.0 (*)
| | | | +--- androidx.compose.ui:ui-util:1.9.0 (*)
| | | | +--- androidx.core:core-ktx:1.12.0 -> 1.16.0 (*)
| | | | +--- androidx.test:monitor:1.6.1
| | | | | +--- androidx.annotation:annotation:1.2.0 -> 1.9.1 (*)
| | | | | +--- androidx.test:annotation:1.0.1
| | | | | | +--- androidx.annotation:annotation:1.2.0 -> 1.9.1 (*)
| | | | | | \--- androidx.annotation:annotation-experimental:1.1.0 -> 1.4.1 (*)
| | | | | \--- androidx.tracing:tracing:1.0.0 -> 1.2.0 (*)
| | | | +--- androidx.test.espresso:espresso-core:3.5.0
| | | | | +--- androidx.annotation:annotation:1.2.0 -> 1.9.1 (*)
| | | | | +--- androidx.test:core:1.5.0
| | | | | | +--- androidx.annotation:annotation:1.2.0 -> 1.9.1 (*)
| | | | | | +--- androidx.test:monitor:1.6.0 -> 1.6.1 (*)
| | | | | | +--- androidx.test.services:storage:1.4.2
| | | | | | | +--- androidx.annotation:annotation:1.2.0 -> 1.9.1 (*)
| | | | | | | +--- androidx.test:monitor:1.6.0 -> 1.6.1 (*)
| | | | | | | +--- com.google.code.findbugs:jsr305:2.0.2 -> 3.0.2
| | | | | | | \--- androidx.test:annotation:1.0.1 (*)
| | | | | | +--- androidx.lifecycle:lifecycle-common:2.3.1 -> 2.9.2 (*)
| | | | | | +--- androidx.tracing:tracing:1.0.0 -> 1.2.0 (*)
| | | | | | +--- com.google.guava:listenablefuture:1.0 -> 9999.0-empty-to-avoid-conflict-with-guava
| | | | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.7.10 -> 2.1.21 (*)
| | | | | | \--- androidx.concurrent:concurrent-futures:1.1.0 (*)
| | | | | +--- androidx.test:runner:1.5.0
| | | | | | +--- androidx.annotation:annotation:1.2.0 -> 1.9.1 (*)
| | | | | | +--- androidx.test:annotation:1.0.1 (*)
| | | | | | +--- androidx.test:monitor:1.6.0 -> 1.6.1 (*)
| | | | | | +--- androidx.test.services:storage:1.4.2 (*)
| | | | | | +--- androidx.tracing:tracing:1.0.0 -> 1.2.0 (*)
| | | | | | \--- junit:junit:4.13.2
| | | | | | \--- org.hamcrest:hamcrest-core:1.3
| | | | | +--- androidx.test.espresso:espresso-idling-resource:3.5.0
| | | | | +--- com.squareup:javawriter:2.1.1
| | | | | +--- javax.inject:javax.inject:1
| | | | | +--- org.hamcrest:hamcrest-library:1.3
| | | | | | \--- org.hamcrest:hamcrest-core:1.3
| | | | | +--- org.hamcrest:hamcrest-integration:1.3
| | | | | | \--- org.hamcrest:hamcrest-library:1.3 (*)
| | | | | +--- com.google.code.findbugs:jsr305:2.0.2 -> 3.0.2
| | | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.7.10 -> 2.1.21 (*)
| | | | | \--- androidx.test:annotation:1.0.1 (*)
| | | | +--- androidx.test.espresso:espresso-idling-resource:3.5.0
| | | | +--- org.jetbrains.kotlin:kotlin-stdlib -> 2.1.21 (*)
| | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1 -> 1.9.0 (*)
| | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.1 -> 1.9.0
| | | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-test-jvm:1.9.0
| | | | | +--- org.jetbrains:annotations:23.0.0
| | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.9.0 (*)
| | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0 (*)
| | | | | \--- org.jetbrains.kotlin:kotlin-stdlib:2.0.0 -> 2.1.21 (*)
| | | | +--- androidx.compose.ui:ui:1.9.0 (c)
| | | | +--- androidx.compose.ui:ui-geometry:1.9.0 (c)
| | | | +--- androidx.compose.ui:ui-graphics:1.9.0 (c)
| | | | +--- androidx.compose.ui:ui-test-junit4:1.9.0 (c)
| | | | +--- androidx.compose.ui:ui-test-manifest:1.9.0 (c)
| | | | +--- androidx.compose.ui:ui-text:1.9.0 (c)
| | | | +--- androidx.compose.ui:ui-tooling:1.9.0 (c)
| | | | +--- androidx.compose.ui:ui-tooling-data:1.9.0 (c)
| | | | +--- androidx.compose.ui:ui-tooling-preview:1.9.0 (c)
| | | | +--- androidx.compose.ui:ui-unit:1.9.0 (c)
| | | | +--- androidx.compose.ui:ui-util:1.9.0 (c)
| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:2.0.21 -> 2.1.21 (c)
| | | +--- androidx.lifecycle:lifecycle-common:2.5.1 -> 2.9.2 (*)
| | | +--- androidx.lifecycle:lifecycle-runtime:2.5.1 -> 2.9.2 (*)
| | | +--- androidx.test:core:1.5.0 (*)
| | | +--- androidx.test:monitor:1.6.1 (*)
| | | +--- androidx.test.ext:junit:1.1.5
| | | | +--- junit:junit:4.13.2 (*)
| | | | +--- androidx.test:core:1.5.0 (*)
| | | | +--- androidx.test:monitor:1.6.1 (*)
| | | | \--- androidx.annotation:annotation:1.2.0 -> 1.9.1 (*)
| | | +--- junit:junit:4.13.2 (*)
| | | +--- org.jetbrains.kotlin:kotlin-stdlib -> 2.1.21 (*)
| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1 -> 1.9.0 (*)
| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.1 -> 1.9.0 (*)
| | | +--- androidx.compose.ui:ui:1.9.0 (c)
| | | +--- androidx.compose.ui:ui-graphics:1.9.0 (c)
| | | +--- androidx.compose.ui:ui-test:1.9.0 (c)
| | | +--- androidx.compose.ui:ui-test-manifest:1.9.0 (c)
| | | +--- androidx.compose.ui:ui-text:1.9.0 (c)
| | | +--- androidx.compose.ui:ui-tooling:1.9.0 (c)
| | | +--- androidx.compose.ui:ui-tooling-data:1.9.0 (c)
| | | +--- androidx.compose.ui:ui-tooling-preview:1.9.0 (c)
| | | +--- androidx.compose.ui:ui-unit:1.9.0 (c)
| | | +--- androidx.compose.ui:ui-util:1.9.0 (c)
| | | +--- org.jetbrains.kotlin:kotlin-stdlib:2.0.21 -> 2.1.21 (c)
| | | \--- androidx.compose.ui:ui-geometry:1.9.0 (c)
| | +--- org.jetbrains.kotlinx:kotlinx-datetime:0.6.0 -> 0.6.2 (*)
| | +--- org.jetbrains.kotlin:kotlin-stdlib:2.1.20 -> 2.1.21 (*)
| | +--- org.jetbrains.compose.runtime:runtime:1.8.0 -> 1.8.1 (*)
| | +--- org.jetbrains.compose.material3:material3:1.8.0 -> 1.8.1 (*)
| | +--- org.jetbrains.compose.material:material-icons-extended:1.7.3 (*)
| | +--- org.jetbrains.compose.components:components-resources:1.8.0 -> 1.8.1 (*)
| | \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0 -> 1.9.0 (*)
My workaround is to add:
configurations {
commonMainImplementation {
exclude(group = "androidx.compose.ui", module = "ui-test-junit4")
}
}
Haven't checked latest version but 1.0.9 is depending on the Android Test libraries which causes problems with gradle resolution.
It has a dependency on an old version of androidx.compose.ui:ui-test-junit4, The problem is not that the version is old, but that it has the dependency at all.
See:
My workaround is to add: