flutter_tts icon indicating copy to clipboard operation
flutter_tts copied to clipboard

Stop using Kotlin Gradle plugin

Open QQEEE123 opened this issue 6 months ago • 4 comments

💬 Questions and Help

Provide question related to this flutter plugin. Flutter 3.44 requires all software packages to use built-in Kotlin instead of the Kotlin Gradle plugin. Read more: https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin/for-plugin-authors

QQEEE123 avatar May 27 '26 08:05 QQEEE123

+1 — we're affected by this on Flutter 3.44.1 / AGP 9.0.1.

flutter build apk emits:

WARNING: Your app uses the following plugins that apply Kotlin Gradle Plugin (KGP): flutter_tts Future versions of Flutter will fail to build if your app uses plugins that apply KGP.

Our app side is already fully migrated to Built-in Kotlin (no kotlin-android in app/build.gradle.kts, android.builtInKotlin/android.newDsl flags set per the guide), so the only remaining source is this plugin: android/build.gradle in 4.2.5 still does apply plugin: 'kotlin-android'. The build still succeeds today thanks to Flutter's temporary KGP support, but that will be removed.

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

Would be great to get a KGP-free release. Thanks for maintaining flutter_tts!

Whiteswaninteractive avatar Jun 10 '26 16:06 Whiteswaninteractive

I'm getting the same warning with my app. I'm on Flutter 3.44.1, AGP 8.11.1.

ibluegreen avatar Jun 12 '26 13:06 ibluegreen

Ditto, same here

jeejeestudio avatar Jun 29 '26 20:06 jeejeestudio

We also hit this. Our app is migrated to AGP 9, but Flutter still restores android.builtInKotlin=false because flutter_tts 4.2.5 applies kotlin-android unconditionally.

#643 looks like the right patch. We can apply that PR on our project, run Android debug/release, and report whether configure/compile succeeds in that mode, if helpful.

carlnes avatar Sep 16 '26 16:09 carlnes