Skip to content

Support Flutter Built-in Kotlin (remove explicit Kotlin Gradle Plugin) #227

Open

Description

@niluved

Description

When building my Flutter application with a recent Flutter version, I receive the following warning:

WARNING: Your app uses the following plugins that apply Kotlin Gradle Plugin (KGP): <PLUGIN_NAME>

Future versions of Flutter will fail to build if your app uses plugins that apply KGP.

Please check the changelogs of these plugins and upgrade to a version that supports Built-in Kotlin.

According to the Flutter migration guide, plugins should no longer apply the Kotlin Gradle Plugin explicitly and should instead rely on Flutter's Built-in Kotlin support.

Flutter migration guide:
https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin

Expected behavior

The plugin should be updated to support Flutter's Built-in Kotlin so that it no longer triggers this warning and remains compatible with future Flutter releases.

Environment

  • Flutter: latest stable
  • Plugin: <PLUGIN_NAME> <PLUGIN_VERSION>

Thanks for your work on this package!

Activity

  1. cue90 commented on Oct 23, 2026

    @cue90

    Same here with cryptography_flutter 2.3.4 (latest), Flutter 3.47.6 stable, AGP 9.1.0, Gradle 9.3.1.

    android/build.gradle applies the Kotlin Gradle Plugin unconditionally (apply plugin: "kotlin-android", KGP 2.2.20 on the buildscript classpath), so apps have to keep android.builtInKotlin=false, and flutter build apk warns that future Flutter versions will fail to build. #229 reports the same thing.

    For comparison, package_info_plus 10.2.2 applies KGP only when the app has built-in Kotlin turned off, so it builds either way.

    Would you take a release that migrates the Android plugin to built-in Kotlin? Happy to test a pre-release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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