https://developer.android.com/guide/navigation/navigation-3/skill

Migrate Android apps from Navigation 2 to Navigation 3 APIs.

5|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/fornewid/android-developers-changelog --skill https-developer-android-com-guide-navigation-navigation-3-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: https://developer.android.com/guide/navigation/navigation-3/skill
Source: https://github.com/fornewid/android-developers-changelog/tree/main/docs/guide/navigation/navigation-3
Command: npx skills add https://github.com/fornewid/android-developers-changelog --skill https-developer-android-com-guide-navigation-navigation-3-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you migrate an Android app from Navigation 2 to Navigation 3 by translating concepts like routes, navigation graphs, back stack/state, and UI components into the Navigation 3 model so you can complete the migration without getting stuck on missing or unsupported features.

Core Features & Use Cases

  • Step-by-step migration walkthrough: Covers dependency updates, route modeling with NavKey, state handling with Navigation 3 back stacks, and replacing NavHost/NavController.
  • Pre-migration validation: Calls out assumptions to confirm (single atomic migration, Compose-only destinations, type-safe routes, etc.) and highlights unsupported features so you don’t proceed incorrectly.
  • AI Agent prompts for planning: Guides you to check recipes (like bottom sheets, modularized navigation, ViewModel args, and result returning) when your app uses those supported-but-not-directly-covered features.

Quick Start

Ask the skill to migrate your app from Navigation 2 to Navigation 3 using the official migration guide, and then follow each step to update code, routes, state, and UI to the Navigation 3 equivalents.

Frequently Asked Questions about https://developer.android.com/guide/navigation/navigation-3/skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate an Android app from Navigation 2 to Navigation 3?

Migrating from Navigation 2 to Navigation 3 requires replacing NavController and NavHost patterns with NavDisplay, entryProvider, and persistent back stack constructs. You must update dependencies, model routes with NavKey, and translate state management to the new Navigation 3 APIs.

What are the requirements for migrating to Navigation 3?

Migrating to Navigation 3 requires a Compose-only destination app using type-safe routes. You need to support compileSdk 36+ and meet NavKey serialization requirements. The migration is a single atomic process, meaning you must validate these assumptions before proceeding.

What is unsupported when migrating to Navigation 3?

Navigation 3 migration has unsupported features and constraints. Pre-migration validation highlights these limitations so you do not proceed incorrectly. You must confirm your app uses Compose-only destinations and type-safe routes to avoid hitting unsupported scenarios.

How do I handle bottom sheets and ViewModels when migrating to Navigation 3?

When migrating to Navigation 3, features like bottom sheets, modularized navigation, ViewModel arguments, and result returning are supported but not directly covered in standard steps. You should use AI Agent prompts to check specific recipes for these features during your migration.

How do I convert routes and state management for Navigation 3?

Converting routes and state for Navigation 3 involves modeling your route definitions with NavKey and handling state with Navigation 3 back stacks. You replace existing navigation graph concepts with NavDisplay and entryProvider constructs to manage persistent state.