You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support Flutter Built-in Kotlin (remove explicit Kotlin Gradle Plugin) #227
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.
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.
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.
Activity
cue90 commentedon Oct 23, 2026
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.