kotlin-tooling-agp9-migration

Migrate Kotlin Multiplatform projects to Android Gradle Plugin 9.0.

Updated Jul 6, 2026
One-click install
npx skills add https://github.com/shirulot/codex-skill --skill kotlin-tooling-agp9-migration-shirulot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-tooling-agp9-migration
Source: https://github.com/shirulot/codex-skill/tree/main/kotlin-tooling-agp9-migration
Command: npx skills add https://github.com/shirulot/codex-skill --skill kotlin-tooling-agp9-migration-shirulot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill resolves build failures and architectural incompatibilities that arise when upgrading Kotlin Multiplatform (KMP) projects to Android Gradle Plugin (AGP) 9.0, which enforces a strict separation between Android application and library plugins.

Core Features & Use Cases

  • Automated Migration Paths: Provides step-by-step guidance for Library plugin swaps, mandatory Android app splitting, and full project restructuring.
  • DSL & Dependency Mapping: Offers a comprehensive reference for migrating deprecated Android DSL elements to the new KMP-integrated configuration.
  • Use Case: When upgrading a monolithic composeApp module to AGP 9.0, use this Skill to safely extract the Android entry point into a dedicated module while preserving shared business logic in a KMP library.

Quick Start

Use the kotlin-tooling-agp9-migration skill to analyze my current project structure and identify the necessary migration path for my modules.

Frequently Asked Questions about kotlin-tooling-agp9-migration

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

FAQPage Schema
How do I migrate a Kotlin Multiplatform project to Android Gradle Plugin 9.0?

To migrate a Kotlin Multiplatform project to Android Gradle Plugin 9.0, you must replace incompatible plugins and restructure modules to enforce a strict separation between Android application and library components.

Why does my KMP build fail after upgrading to AGP 9.0?

Your KMP build fails after upgrading to AGP 9.0 because the new plugin enforces strict architectural separation, requiring monolithic application modules to be split into separate Android app and KMP library components.

How do I split a monolithic composeApp module for AGP 9.0?

Splitting a monolithic composeApp module for AGP 9.0 involves extracting the Android entry point into a dedicated application module while preserving shared business logic inside a separate KMP library component.

Can I update deprecated Android DSL elements to the new KMP configuration automatically?

You can update deprecated Android DSL elements by referencing a comprehensive mapping that transitions old syntax to the new KMP-integrated configuration required for built-in Kotlin support.

Do I need to separate Android app and library plugins for KMP in AGP 9.0?

Yes, you must separate Android app and library plugins for KMP in AGP 9.0 because the update enforces a strict architectural separation that makes monolithic application modules incompatible.

What is the correct source set configuration when upgrading KMP modules to AGP 9.0?

Correct source set configuration when upgrading KMP modules to AGP 9.0 requires restructuring modules to satisfy built-in Kotlin support and updated DSL syntax across separated Android app and KMP library components.