Giter Club home page Giter Club logo

Comments (5)

anshulupadhyay03 avatar anshulupadhyay03 commented on June 1, 2024 1

@arkivanov yes, this solves the issue. Thanks a lot .

from decompose.

arkivanov avatar arkivanov commented on June 1, 2024

I don't think this is related to Decompose, but rather to Compose 1.6.x.

Please try adding google() repository in your Gradle configuration.

from decompose.

anshulupadhyay03 avatar anshulupadhyay03 commented on June 1, 2024

@arkivanov Thanks for the reply. I have google() added to my gradle configuration. Why i think it is related to deompose because when I lower the version of decompose. Everything works fine. Also I face the same while building this project of other dev who i have some motivation for developing for wasm: https://github.com/mkonkel/GameShop

`enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

pluginManagement {
repositories {
google()
gradlePluginPortal()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental")
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
}

dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental")
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
}`

Als0 check my toml file below , i have further tried to bum the version to alpha6

`[versions]
coroutines = "1.7.2"
ktor = "2.3.0"
ktor-wasm = "3.0.0-wasm2"
androidx-activityCompose = "1.8.2"
androidx-appcompat = "1.6.1"
androidx-core-ktx = "1.12.0"
imageLoading = "1.5.2"
decompose = "3.0.0-alpha06"
#essenty = "2.0.0-alpha02"
kotlinDateTime = "0.5.0"
compose = "1.5.4"
coil = "3.0.0-SNAPSHOT"
compose-plugin = "1.6.0-alpha01"
kotlin = "1.9.21"
agp = "8.2.1"

[libraries]

androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activityCompose" }
compose-ui = { module = "androidx.compose.ui:ui", version.ref = "compose" }
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" }
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "compose" }

androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" }
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "androidx-core-ktx" }

image-loading = { module = "io.github.qdsfdhvh:image-loader", version.ref = "imageLoading" }

kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinDateTime" }

ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor-wasm" }
ktor-client-darwin = { module = "io.ktor:ktor-client-darwin", version.ref = "ktor-wasm" }
ktor-client-web = { module = "io.ktor:ktor-client-js", version.ref = "ktor-wasm" }
ktor-client-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor-wasm" }

ktor-client-content-negotiation = { module = "io.ktor:ktor-client-content-negotiation", version.ref = "ktor-wasm" }
ktor-client-serialization-json = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor-wasm" }
ktor-client-logging = { module = "io.ktor:ktor-client-logging", version.ref = "ktor-wasm" }

#essenty-lifecycle = { group = "com.arkivanov.essenty", name = "lifecycle", version.ref = "essenty" }
arkivanov-decompose = { group = "com.arkivanov.decompose", name = "decompose", version.ref = "decompose" }
arkivanov-jetbrains-uiext = { group = "com.arkivanov.decompose", name = "extensions-compose", version.ref = "decompose" }

#Image downloading
coil-coil = { group = "io.coil-kt.coil3", name = "coil", version.ref = "coil" }
coil-compose = { group = "io.coil-kt.coil3", name = "coil-compose", version.ref = "coil" }
coil-network-ktor = { group = "io.coil-kt.coil3", name = "coil-network-ktor", version.ref = "coil" }

[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
androidLibrary = { id = "com.android.library", version.ref = "agp" }
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlinCocoapods = { id = "org.jetbrains.kotlin.native.cocoapods", version.ref = "kotlin" }`

from decompose.

arkivanov avatar arkivanov commented on June 1, 2024

Decompose doesn't depend on androidx.annotation:annotation directly. Version 3.0.0-alpha04 depends on Compose 1.6.0-alpha01, whereas Decompose 3.0.0-alpha03 depends on Compose 1.5.11. You can also try updating Decompose to the latest version 3.0.0-alpha07 and Compose to 1.6.0-rc02. If it doesn't solve the issue, please report a bug here.

from decompose.

arkivanov avatar arkivanov commented on June 1, 2024

Looks related: JetBrains/compose-multiplatform#4277

from decompose.

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.