kizitonwose / Calendar

A highly customizable calendar view and compose library for Android and Kotlin Multiplatform.
MIT License
4.76k stars 509 forks source link

Build Error: Could not resolve androidx.lifecycle:lifecycle-runtime-ktx:2.3.1. #569

Closed piappstudio closed 3 months ago

piappstudio commented 3 months ago

Library information:

Describe the bug**

The moment, I integrate this library with my multiplatform app , the app throws the build error while trying to execute the Android or Windows platform.

Build Error:

Execution failed for task ':desktopApp:run'.

Could not resolve all files for configuration ':desktopApp:jvmRuntimeClasspath'. Could not resolve androidx.lifecycle:lifecycle-runtime-ktx:2.3.1. Required by: project :desktopApp > project :shared > cafe.adriel.voyager:voyager-koin:1.0.0-rc05 > io.insert-koin:koin-androidx-compose:3.2.2 > io.insert-koin:koin-android:3.2.3 > androidx.activity:activity-ktx:1.4.0 project :desktopApp > project :shared > cafe.adriel.voyager:voyager-koin:1.0.0-rc05 > io.insert-koin:koin-androidx-compose:3.2.2 > androidx.navigation:navigation-compose:2.4.2 > androidx.navigation:navigation-runtime-ktx:2.4.2 > androidx.navigation:navigation-runtime:2.4.2 project :desktopApp > project :shared > cafe.adriel.voyager:voyager-koin:1.0.0-rc05 > io.insert-koin:koin-androidx-compose:3.2.2 > androidx.navigation:navigation-compose:2.4.2 > androidx.navigation:navigation-runtime-ktx:2.4.2 > androidx.navigation:navigation-runtime:2.4.2 > androidx.navigation:navigation-common:2.4.2 No matching variant of androidx.lifecycle:lifecycle-runtime-ktx:2.8.0 was found. The consumer was configured to find a library for use during runtime, preferably optimized for standard JVMs, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:

Expected behavior (if applicable)

The build should succeed

Screenshots? (if applicable)

Nope.

Additional information

Looks like it create some conflicts with voyager navigator.

voyager-navigator = {group = "cafe.adriel.voyager", name = "voyager-navigator", version.ref= "voyagerVersion"} voyager-bottom-sheet = {group = "cafe.adriel.voyager", name = "voyager-bottom-sheet-navigator", version.ref= "voyagerVersion"} voyager-tab-navigator = {group = "cafe.adriel.voyager", name = "voyager-tab-navigator", version.ref= "voyagerVersion"} voyager-transitions = {group = "cafe.adriel.voyager", name = "voyager-transitions", version.ref= "voyagerVersion"}

For koin integration https://voyager.adriel.cafe/screenmodel/koin-integration

voyager-koin = {module = "cafe.adriel.voyager:voyager-koin", version.ref= "voyagerVersion"}

piappstudio commented 3 months ago

Needs to update compose_version to 1.7.0-alpha01