Skip to content

[WIP] [AGP 9] Support enabled built in kotlin#187534

Draft
jesswrd wants to merge 2 commits into
flutter:masterfrom
jesswrd:support-enabled-built-in-kotlin
Draft

[WIP] [AGP 9] Support enabled built in kotlin#187534
jesswrd wants to merge 2 commits into
flutter:masterfrom
jesswrd:support-enabled-built-in-kotlin

Conversation

@jesswrd
Copy link
Copy Markdown
Contributor

@jesswrd jesswrd commented Jun 3, 2026

Currently enabling built-in kotlin is not supported in Flutter 3.44. This is because we automatically apply KGP when a subproject (app, plugin used by app etc) does not apply KGP.

This means even when a dev:

  1. Ensures their app and any plugin their app uses is migrated to built-in Kotlin
  2. Sets android.builtInKotlin=true to enable built-in Kotlin

FGP will still continue to apply KGP, which prevents successful builds. To resolve this, we should add support to enable built-in kotlin. We can check to see if builtInKotlin is enable and if all subprojects (app, plugins) do not apply KGP.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jun 3, 2026
@github-actions github-actions Bot added platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels. labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant