kotlin-tooling-agp9-migration

Migrate Kotlin Multiplatform projects to AGP 9.0+ with plugin and DSL updates.

2|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/MajesteitBart/ownkey-keyboard --skill kotlin-tooling-agp9-migration-majesteitbart
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-tooling-agp9-migration
Source: https://github.com/MajesteitBart/ownkey-keyboard/tree/main/.agents/skills/kotlin-tooling-agp9-migration
Command: npx skills add https://github.com/MajesteitBart/ownkey-keyboard --skill kotlin-tooling-agp9-migration-majesteitbart

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Migrates Kotlin Multiplatform (KMP) projects to Android Gradle Plugin 9.0+ by guiding plugin replacements, DSL migrations, and module restructuring to meet AGP 9.0 requirements.

Core Features & Use Cases

  • Replaces the legacy com.android.library with com.android.kotlin.multiplatform.library and updates the Kotlin DSL to place android {} inside kotlin {}.
  • Migrates Android-specific configuration and shared code to the new single-variant KMP library model, enabling AGP 9.0 compatibility.
  • Provides guidance for migrating annotation processors (to KSP or legacy-kapt) and enabling Android resources in KMP libraries.

Quick Start

Follow the migration guide to convert your KMP module to AGP 9.0 by swapping plugins, migrating DSL blocks, and restructuring the project.

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 Kotlin Multiplatform to AGP 9.0?

To migrate Kotlin Multiplatform to AGP 9.0, replace com.android.library with com.android.kotlin.multiplatform.library and move android {} configurations inside the kotlin {} DSL block. This restructuring ensures your KMP library or app meets the new single-variant model requirements.

What plugins do I need to remove for AGP 9.0 KMP migration?

For AGP 9.0 KMP migration, you must remove the org.jetbrains.kotlin.android plugin and swap com.android.library for com.android.kotlin.multiplatform.library. This aligns your project with AGP 9.0's Kotlin runtime integration and single-variant model.

How do I migrate KAPT to KSP in a Kotlin Multiplatform project?

Migrating KAPT to KSP in a Kotlin Multiplatform project involves updating your annotation processors to use KSP or legacy-kapt. This migration is required during AGP 9.0 upgrades to maintain compatibility with the new Kotlin runtime integration.

Does AGP 9.0 support Android resources in KMP libraries?

AGP 9.0 supports Android resources in KMP libraries by enabling specific configurations during module restructuring. You must migrate Android-specific shared code to the new single-variant KMP library model to successfully enable and access these resources.

Why do I need to move android {} inside kotlin {} for AGP 9?

Moving android {} inside kotlin {} for AGP 9 is required to replace the legacy DSL structure with the new KMP library model. This DSL migration ensures proper Android-specific configuration and shared code alignment with AGP 9.0's single-variant architecture.