Skip to content

[AGP 9] Add Support for Built-in Kotlin in FGP #183909

Description

@jesswrd

We add support for Built-in Kotlin when we have set the default to KGP to ensure the Flutter ecosystem can safely migrate. If app or plugin developers have not made the migration, we log relevant warnings and links to migration guides. The Flutter ecosystem must migrate to Built-in Kotlin in order to use AGP >= 9.

Implementation-wise, we are maintaining the legacy KGP as the default behavior. However, by adding internal support for Built-in Kotlin, we have effectively enabled AGP 9+ compatibility for the end user. So mechanically, we are supporting Built-in Kotlin but really this work was done to support the legacy KGP on AGP 9+ that way all migration states are supported.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listplatform-androidAndroid applications specificallyt: gradle"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions