Skip to content

Migrate Android plugins to Flutter built-in Kotlin support #888

Description

@aiviapp

Flutter 3.44.4 reports that the latest Google ML Kit Flutter packages still apply the legacy Kotlin Gradle Plugin (KGP), which future Flutter versions will no longer support.

Verified latest affected releases:

  • google_mlkit_commons 0.12.0
  • google_mlkit_language_id 0.14.0
  • google_mlkit_text_recognition 0.16.0

Their Android Gradle scripts unconditionally apply kotlin-android and configure kotlinOptions. The recent compileSdk 36 / AGP 9 compatibility changes do not yet migrate the plugins to AGP 9 built-in Kotlin.

Please follow Flutter's plugin-author migration guide:

https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin/for-plugin-authors

Observed warning:

Your app uses the following plugins that apply Kotlin Gradle Plugin (KGP): google_mlkit_commons, google_mlkit_language_id, google_mlkit_text_recognition

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions