ixsans / text_to_speech

A Flutter plugin provides TTS (Text-To-Speech) Service
BSD 3-Clause "New" or "Revised" License
15 stars 22 forks source link

Your package is making use of an older kotlin-gradle-plugin-version. #13

Open RathoreAbhiii opened 1 year ago

RathoreAbhiii commented 1 year ago

While trying to use the text_to_speech package in a flutter application. I encountered the following error: "The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':text_to_speech' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50"

My project's build.gradle is using kotlin_version = 1.7.10. Clearly, the provided package does not provide support for latest kotlin versions. Please fix the following issue as soon as possible! Thanks!

tmtong commented 1 year ago

I have the same error. How to fix this?

RathoreAbhiii commented 1 year ago

I have the same error. How to fix this?

You can try using the following package: [Flutter_tts]https://pub.dev/packages/flutter_ttsl). This worked for me!

mjm1158 commented 2 months ago

I tried using the [Flutter_tts] (https://pub.dev/packages/flutter_ttsl) package before trying this one and I saw my console spit out error messages that I have yet to ever encounter in 2 years of learning android/flutter development.

That being said, I guessed a simple fix for this. I went into External Libraries\Flutter Plugins\text_to_speech-0.2.3\android\build.gradle and changed the kotlin version to the one matching the error message ( which is still lower than the one my Flutter app is supporting).

And my text is talking as I write this. Hope this helps.