Declarative navigation for Compose UIs, offering runtime and UI modules, navigation graphs, deep-linking, lifecycle-aware back stack handling, and simplified dependency setup.
Navigation 3 is a new navigation library designed to work with Compose.
To add a dependency on navigation3, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle file for your app or module:
dependencies {
implementation("androidx.navigation3:navigation3-runtime:1.1.0-alpha02")
implementation("androidx.navigation3:navigation3-ui:1.1.0-alpha02")
}
dependencies {
implementation "androidx.navigation3:navigation3-runtime:1.1.0-alpha02"
implementation "androidx.navigation3:navigation3-ui:1.1.0-alpha02"
}
For more information about dependencies, see Add build dependencies.
Navigation 3 is a new navigation library designed to work with Compose.
To add a dependency on navigation3, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle file for your app or module:
dependencies {
implementation("androidx.navigation3:navigation3-runtime:1.1.0-alpha02")
implementation("androidx.navigation3:navigation3-ui:1.1.0-alpha02")
}
dependencies {
implementation "androidx.navigation3:navigation3-runtime:1.1.0-alpha02"
implementation "androidx.navigation3:navigation3-ui:1.1.0-alpha02"
}
For more information about dependencies, see Add build dependencies.