Skip to content
Back to skills

Android Agp Upgrade

ASecurity

1. Check the current AGP version. If it is below 8.x, run Android Studio’s AGP Upgrade Assistant first. 2. Verify that the Gradle, JDK, and Kotlin versions are compatible with AGP 9’s release notes. 3. Update the build files to the latest stable AGP 9.x version. Also update related dependencies as needed: - KSP: version 2.3.6 or newer - Hilt: version 2.59.2 or newer 4. Migrate to AGP 9’s built-in Kotlin support. Remove the `org.jetbrains.kotlin.android` plugin and follow the built-in Kotlin m...

  • 584 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
developmentkotlinbash

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill android-agp-upgrade --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Android Agp Upgrade?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Android Agp Upgrade
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-android-agp-upgrade-fe291b8b/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-android-agp-upgrade-fe291b8b)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Migrating an Android project to AGP 9

1. Check the current AGP version. If it is below 8.x, run Android Studio’s AGP Upgrade Assistant first.

2. Verify that the Gradle, JDK, and Kotlin versions are compatible with AGP 9’s release notes.

3. Update the build files to the latest stable AGP 9.x version. Also update related dependencies as needed:
   - KSP: version 2.3.6 or newer
   - Hilt: version 2.59.2 or newer

4. Migrate to AGP 9’s built-in Kotlin support. Remove the `org.jetbrains.kotlin.android` plugin and follow the built-in Kotlin migration guidance.

5. Migrate each `android {}` block to the new AGP 9 DSL, including namespace handling, build type configuration, and source set declarations.

6. If the project uses `kapt`, migrate to KSP wherever the annotation processor supports it (for example, Room, Hilt, or Moshi). For processors without KSP support, use `legacy-kapt` as a bridge.

7. Update custom `BuildConfig` fields to the AGP 9 syntax.

8. Remove these migration flags from `gradle.properties`:
   - `android.builtInKotlin`
   - `android.newDsl`
   - `android.uniquePackageNames`
   - `android.enableAppCompileTimeRClass`

9. Verify the migration without running `clean`:

   ```bash
   ./gradlew help
   ./gradlew build --dry-run
   ```

   Both commands should succeed, and the project should also sync successfully in the IDE.

Do not add `android.disallowKotlinSourceSets=false` to `gradle.properties`. This workflow does not apply to Kotlin Multiplatform projects.

Files in this skill

  • eval-1.baseline.md926 B
  • eval-1.with-skill.md914 B
  • eval-2.baseline.md4.1 KB
  • eval-2.with-skill.md1.5 KB
  • eval-3.baseline.md2.1 KB
  • eval-3.with-skill.md885 B
  • trigger-1.md132 B
  • trigger-2.md110 B
  • trigger-3.md127 B
  • trigger-4.md129 B
  • trigger-5.md137 B
  • trigger-6.md118 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.