Giter VIP home page Giter VIP logo

Comments (1)

MatkovIvan avatar MatkovIvan commented on May 28, 2024

Please note that Compose Multiplatform doesn't re-compile Google's binaries and reuses them as-is. This problem is about Compose 1.7.0 compatibility and tracked here: https://issuetracker.google.com/issues/324975816

In your project you can see that in the dependency graph Jetpack Compose is resolved to 1.7.0-alpha05:

./gradlew dependencies

...
+--- org.jetbrains.androidx.navigation:navigation-compose:2.8.0-alpha01
|    \--- androidx.navigation:navigation-compose:2.8.0-alpha05
|         +--- androidx.activity:activity-compose:1.8.0 -> 1.8.2 (*)
|         +--- androidx.compose.animation:animation:1.7.0-alpha05 (*)
|         +--- androidx.compose.runtime:runtime:1.7.0-alpha05 (*)
|         +--- androidx.compose.runtime:runtime-saveable:1.7.0-alpha05 (*)
|         +--- androidx.compose.ui:ui:1.7.0-alpha05 (*)
...

That's an unfortunate situation because Compose Multiplatform is not adopted to 1.7.0 yet. I'll think how to mitigate this.

For now I can only suggest this workaround:
configurations.configureEach {
    resolutionStrategy {
        eachDependency {
            if (requested.group in listOf(
                "androidx.compose.animation",
                "androidx.compose.runtime",
                "androidx.compose.ui",
                "androidx.compose.foundation"
            )) {
                useVersion("1.6.5")
            }
        }
    }
}

UPD: The workaround above is incorrect because navigation 2.8.* uses SeekableTransitionState from compose 1.7

from compose-multiplatform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.