WojciechOsak / Calendar

Kotlin Multiplatform Calendar Library
Apache License 2.0
107 stars 8 forks source link

Could not resolve androidx.lifecycle:lifecycle-runtime-ktx:2.3.1. error during integration #16

Closed piappstudio closed 3 months ago

piappstudio commented 3 months ago

Build failure during compilation itself.

Task :desktopApp:run FAILED

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:

  • Variant 'androidxSourcesElements' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0:
  • Incompatible because this component declares documentation for use during 'androidx-multiplatform-docs' and the consumer needed a library for use during runtime
  • Other compatible attributes:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
  • Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
  • Variant 'libraryVersionMetadata' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0:
  • Incompatible because this component declares documentation for use during 'library-version-metadata' and the consumer needed a library for use during runtime
  • Other compatible attributes:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
  • Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
  • Variant 'metadataApiElements' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0 declares a library:
  • Incompatible because this component declares a component for use during 'kotlin-metadata', as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a component for use during runtime, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
  • Other compatible attribute:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
  • Variant 'metadataSourcesElements' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0:
  • Incompatible because this component declares documentation for use during 'kotlin-runtime', as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a library for use during runtime, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
  • Other compatible attribute:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
  • Variant 'releaseApiElements-published' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0 declares a library:
  • Incompatible because this component declares a component for use during compile-time, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component for use during runtime, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
  • Other compatible attribute:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
  • Variant 'releaseRuntimeElements-published' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0 declares a library for use during runtime:
  • Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
  • Other compatible attribute:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
  • Variant 'releaseSourcesElements-published' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0 declares a component for use during runtime:
  • Incompatible because this component declares documentation, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
  • Other compatible attribute:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs) 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.lifecycle:lifecycle-common-java8:2.8.0 > androidx.lifecycle:lifecycle-common:2.8.0 > androidx.lifecycle:lifecycle-common-jvm:2.8.0 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.appcompat:appcompat:1.4.2 > androidx.lifecycle:lifecycle-runtime:2.8.0 > androidx.lifecycle:lifecycle-runtime-desktop:2.8.0 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.appcompat:appcompat:1.4.2 > androidx.lifecycle:lifecycle-viewmodel:2.8.0 > androidx.lifecycle:lifecycle-viewmodel-desktop:2.8.0 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.lifecycle:lifecycle-common-java8:2.8.0 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.lifecycle:lifecycle-common-java8:2.8.0 > androidx.lifecycle:lifecycle-livedata-core:2.8.0 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.lifecycle:lifecycle-common-java8:2.8.0 > androidx.lifecycle:lifecycle-livedata:2.8.0 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.fragment:fragment-ktx:1.4.1 > androidx.lifecycle:lifecycle-livedata-core-ktx:2.8.0 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.lifecycle:lifecycle-common-java8:2.8.0 > androidx.lifecycle:lifecycle-process:2.8.0 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.lifecycle:lifecycle-viewmodel-ktx:2.8.0 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.lifecycle:lifecycle-common-java8:2.8.0 > androidx.lifecycle:lifecycle-viewmodel-savedstate:2.8.0 project :desktopApp > project :shared > cafe.adriel.voyager:voyager-koin:1.0.0-rc05 > io.insert-koin:koin-androidx-compose:3.2.2 > androidx.lifecycle:lifecycle-viewmodel-compose:2.8.0 > androidx.lifecycle:lifecycle-viewmodel-compose-desktop:2.8.0 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:
  • Variant 'androidxSourcesElements' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0:
  • Incompatible because this component declares documentation for use during 'androidx-multiplatform-docs' and the consumer needed a library for use during runtime
  • Other compatible attributes:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
  • Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
  • Variant 'libraryVersionMetadata' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0:
  • Incompatible because this component declares documentation for use during 'library-version-metadata' and the consumer needed a library for use during runtime
  • Other compatible attributes:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
  • Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
  • Variant 'metadataApiElements' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0 declares a library:
  • Incompatible because this component declares a component for use during 'kotlin-metadata', as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a component for use during runtime, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
  • Other compatible attribute:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
  • Variant 'metadataSourcesElements' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0:
  • Incompatible because this component declares documentation for use during 'kotlin-runtime', as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a library for use during runtime, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
  • Other compatible attribute:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
  • Variant 'releaseApiElements-published' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0 declares a library:
  • Incompatible because this component declares a component for use during compile-time, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component for use during runtime, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
  • Other compatible attribute:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
  • Variant 'releaseRuntimeElements-published' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0 declares a library for use during runtime:
  • Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
  • Other compatible attribute:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
  • Variant 'releaseSourcesElements-published' capability androidx.lifecycle:lifecycle-runtime-ktx:2.8.0 declares a component for use during runtime:
  • Incompatible because this component declares documentation, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a library, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm'
  • Other compatible attribute:
  • Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
piappstudio commented 3 months ago

Updating compose-verison 1.7.0-alpha01 will resolve this issue