What this thread does
Do first: as of November 2026, use Navigation 3 1.2.2.
Short answer
As of November 2026, Navigation 3 1.2.2, November 18, 2026 is the stable target. The 1.2 series uses Compose 1.10; 1.2.1 lowered compileSdk from 37 to 36. Own a list of serializable NavKey values; replace controller-owned navigation with explicit key-stack changes and destination mappings.
Choose / don't choose
- Navigation 3: choose for Compose destinations with explicit state ownership; don't assume NavController, NavHost graphs or Navigation 2 saved-state bytes migrate automatically (migration guide).
- Stable 1.2.2: choose for the 1.2 deep-link APIs; don't copy 1.3 alpha dependencies merely because they appear first in the release page.
- Per-tab stacks: choose when each tab retains its path; keep selected tab and all stacks in saveable state rather than reconstructing them on tab selection.
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
| Navigation 3 release | 1.2.2; Compose dependency 1.10, compileSdk 36 | Navigation 3 1.2.2 | source |
org.jetbrains.kotlin.plugin.serialization | Enable the matching Kotlin plugin; setup example 2.2.21, serialization core 1.9.0 | Current Navigation 3 setup example | source |
rememberNavBackStack(Home) | Each key implements NavKey and is @Serializable; encode stable route arguments | Navigation 3 1.2.1 | source |
NavDisplay(entryDecorators = listOf(…)) | rememberSaveableStateHolderNavEntryDecorator() before rememberViewModelStoreNavEntryDecorator() | Navigation 3 1.2.1 | source |
lifecycle-viewmodel-navigation3 | Separate Lifecycle artifact; as of November 2026, setup example 2.12.0-alpha06 is an alpha, not version 1.2.2 | Navigation 3 setup, optional ViewModel scoping | source |
android:autoVerify / intent filter | true; android.intent.action.VIEW, DEFAULT, BROWSABLE, HTTPS host and allowed path; publish matching assetlinks.json | Android App Links | source |
UriDeepLinkMatcher(...).withBackStack | Build the intended ancestry, e.g. listOf(HomeKey, matchResult.key); choose best match(request) result | Navigation 3 1.2.0+ | source |
Order of operations
1. Snapshot existing routes/arguments and Back behavior. Move destinations to entryProvider / NavDisplay; replace navigate/popUpTo behavior with explicit mutations (migration). 2. Restore saveable stacks and selected tab before rendering; configure entry state owners. Do not treat a ViewModel as process-persistent storage (state guide). 3. Application policy inferred from the state and deep-link guides: on a fresh launch map the incoming Intent with DeepLinkRequest(intent = intent), choose mapNotNull { it.match(request) }.maxOrNull(), and build its key list. On recreation prefer restored entries and do not append the original launch link again. Save consumed-link identity alongside navigation state. 4. Handle a genuinely new onNewIntent as a new event; validate/authorize destination arguments and apply the intended replace/append policy exactly once. Deduplication is app policy, not a built-in matcher guarantee. 5. Compare external HTTPS links cold and warm, rotate, then separately terminate a background process and reopen Recents; inspect key sequence and edited fields. Test a new Intent after restoration as well as the original launch Intent.
Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
| Form state or ViewModel scope changes (symptom) | Inspect missing entry state decorators or Activity-wide ViewModel ownership | Install entry decorators in documented order; popping an entry clears its ViewModel | source |
Missing
- The linked source does not confirm: A nonserializable key causes a route to disappear after process death.
- No automatic conversion of Navigation 2 saved stacks is established; define an app-upgrade fallback.
- The setup page uses an alpha Lifecycle add-on; compatibility with an arbitrary older Lifecycle/Compose lockfile is not implied. Custom scenes and Fragment destinations need their own migration.
Checked
2026-11-12; Sources read: linked release, setup, state, migration and link references, plus historical conditional-link issue. No Gradle or device commands executed.
Related references: Gradle dependency report.
Not for: SwiftUI navigation; see swiftui-list-detail-navigationsplitview.
Started from a post by @Android Developers, packaged by the editor. Original post