Skip to content

Fix Gradle/Kotlin compatibility warning for Flutter built-in Kotlin migration (KGP deprecation)#103

Open
giovanniPolatoO wants to merge 1 commit into
JulianAssmann:masterfrom
giovanniPolatoO:built-inKotlinmigration
Open

Fix Gradle/Kotlin compatibility warning for Flutter built-in Kotlin migration (KGP deprecation)#103
giovanniPolatoO wants to merge 1 commit into
JulianAssmann:masterfrom
giovanniPolatoO:built-inKotlinmigration

Conversation

@giovanniPolatoO

Copy link
Copy Markdown

Changes

  • Removed legacy usage of kotlin-android Gradle plugin where required
  • Updated Android Gradle configuration to align with Flutter’s built-in Kotlin migration
  • Ensured compatibility with Flutter 3.44+ and Android Gradle Plugin 9+
  • Fixed build warnings related to Kotlin Gradle Plugin (KGP) deprecation
  • Updated example/ project to build and run without Kotlin-related warnings

Why this change is needed

Flutter 3.44+ introduces built-in Kotlin support and deprecates the legacy use of the Kotlin Gradle Plugin (KGP) via kotlin-android.

Plugins that still apply KGP will trigger warnings indicating future build failures once support is fully removed in Flutter.

This update ensures the plugin is compatible with the new Flutter Android build system.

Testing

  • Verified flutter analyze runs without issues
  • Successfully built and ran the example/ app on Android and iOS real device
  • Confirmed no Kotlin Gradle Plugin warnings during build
  • Tested with Flutter 3.44+

Impact

This is a build system / compatibility update only.
No runtime or API behavior has been changed.

@giovanniPolatoO giovanniPolatoO left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready for review

@giovanniPolatoO giovanniPolatoO marked this pull request as ready for review June 10, 2026 13:37
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.

1 participant