Skip to content

chore(android): support AGP 9 built-in Kotlin#1102

Draft
hiroshihorie wants to merge 2 commits into
mainfrom
hiroshi/agp9-built-in-kotlin
Draft

chore(android): support AGP 9 built-in Kotlin#1102
hiroshihorie wants to merge 2 commits into
mainfrom
hiroshi/agp9-built-in-kotlin

Conversation

@hiroshihorie
Copy link
Copy Markdown
Member

@hiroshihorie hiroshihorie commented Jun 3, 2026

Summary

  • Avoid applying the Kotlin Gradle Plugin when AGP 9+ is in use.
  • Keep applying kotlin-android for AGP < 9 so older Flutter/AGP setups continue to work.
  • Add a changeset entry for the generated release notes.

Context

AGP 9 uses built-in Kotlin support and rejects Android plugins that still apply KGP directly. This follows the Flutter compatibility migration path instead of raising the package minimum to Flutter 3.44.

Fixes #1092.

Testing

  • flutter build apk from example
  • git diff --check

@hiroshihorie hiroshihorie linked an issue Jun 3, 2026 that may be closed by this pull request
@hiroshihorie hiroshihorie changed the title Hiroshi/agp9 built in kotlin chore(android): support AGP 9 built-in Kotlin Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Plugin to Built-in Kotlin

1 participant