alexzhirkevich / compottie

Compose Multiplatform library for rendering Lottie animations with own pure Kotlin renderer
MIT License
252 stars 9 forks source link

[Bug]: Cannot run example #28

Open lemcoder opened 1 week ago

lemcoder commented 1 week ago

What happened?

Unable to build example Android app

Execution failed for task ':compottie:compileDebugKotlinAndroid'.
> Error while evaluating property 'friendPathsSet$kotlin_gradle_plugin_common' of task ':compottie:compileDebugKotlinAndroid'.
   > Could not resolve all files for configuration ':compottie:debugCompileClasspath'.
      > Could not resolve org.jetbrains.kotlinx:atomicfu:0.26.0.
        Required by:
            project :compottie
         > Cannot find a version of 'org.jetbrains.kotlinx:atomicfu' that satisfies the version constraints:
              Dependency path 'io.github.alexzhirkevich:compottie:2.0.0-rc02' --> 'org.jetbrains.kotlinx:atomicfu:0.26.0'
              Constraint path 'io.github.alexzhirkevich:compottie:2.0.0-rc02' --> 'org.jetbrains.kotlinx:atomicfu:{strictly 0.23.2}' because of the following reason: debugRuntimeClasspath uses version 0.23.2

Host machine: Windows, IDE: Android Studio

What Compottie version do you experience the bug on?

2.0.0-rc02

What platforms are you seeing the problem on?

Android

Does Compottie log anythyng to the stdout / your logger set with Compottie.logger?

No response

lemcoder commented 1 week ago

I submitted a PR with solution -> #29

the issue is due to gradle beeing unable to resolve right atomicfu version because compose provides a transitive dependency on atomicfu v0.23.2 and compottie uses v0.26.0