I update nav3-about versions. New error occurred. ...
# compose-desktop
w
I update nav3-about versions. New error occurred.
Copy code
navigation3UI = "1.0.0+dev2932"
navigation3Runtime = "1.0.0-alpha09"

composeMultiplatform = "1.10.0+dev2932"
error is `java.lang.NoClassDefFoundError: androidx/navigation3/runtime/DecoratedNavEntryProviderKt at androidx.navigation3.ui.NavDisplayKt.NavDisplay(NavDisplay.kt:181)`
It runs normally if the dependency on navigation3Runtime is removed.
e
Please tell me how did you connect navigation 3?
Copy code
kotlin {
    androidTarget {
        @OptIn(ExperimentalKotlinGradlePluginApi::class)
        compilerOptions {
            jvmTarget.set(JvmTarget.JVM_11)
        }
    }
    
    jvm()
    
    sourceSets {
        androidMain.dependencies {
          
            implementation(compose.preview)
            implementation(libs.androidx.activity.compose)

        }
        commonMain.dependencies {
            implementation("org.jetbrains.androidx.navigation3:navigation3-runtime:1.0.0+dev2932")
            implementation("org.jetbrains.androidx.navigation3:navigation3-ui:1.0.0+dev2932") 

            implementation(libs.androidx.room.runtime)
            implementation(libs.androidx.sqlite.bundled)



            implementation(compose.runtime)
            implementation(compose.foundation)
            implementation(compose.material3)
            implementation(compose.ui)
            implementation(compose.components.resources)
            implementation(compose.components.uiToolingPreview)
            implementation(libs.androidx.lifecycle.viewmodelCompose)
            implementation(libs.androidx.lifecycle.runtimeCompose)
        }
        commonTest.dependencies {
            implementation(libs.kotlin.test)
        }
        jvmMain.dependencies {

            implementation(compose.desktop.currentOs)
            implementation(libs.kotlinx.coroutinesSwing)
        }
    }
}
w
@Egor228000 remove implementation("org.jetbrains.androidx.navigation3navigation3 runtime1.0.0+dev2932")
e
But that's the problem. Unresolved reference 'NavBackStack'
Copy code
import androidx.navigation3.runtime.NavBackStack
w
@Egor228000 composeMultiplatform version need update to
1.10.0+dev2932