From 7e81911f1812c7d0aef09a2c7223357304b8fa5e Mon Sep 17 00:00:00 2001 From: Florian Aul Date: Thu, 11 Jul 2024 00:58:29 +0200 Subject: [PATCH] Added information about the necessity to upgrade the gradle plugin and instructions on how to update it. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index ed86c411..fd424e51 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,20 @@ Change the minimum Android sdk version to 21 (or higher) in your `android/app/bu minSdkVersion 21 ``` +**Update the Kotlin Gradle Plugin Version** + +Change the verision of the Kotlin Gradle plugin to `1.9.10`.
+If your project was created with a version of Flutter before 3.19, go to the `android/build.gradle` file and update the `ext.kotlin_version`: +```groovy +ext.kotlin_version = '1.9.10' +``` + +Otherwise go to `android/settings.gradle` and update the verion of the plugin `org.jetbrains.kotlin.android`: +```groovy +id "org.jetbrains.kotlin.android" version "1.9.10" apply false +``` + + Apps targeting Android 11 that use text-to-speech should declare [`TextToSpeech.Engine.INTENT_ACTION_TTS_SERVICE`](https://developer.android.com/reference/android/speech/tts/TextToSpeech.Engine#INTENT_ACTION_TTS_SERVICE) in the `queries` elements of their manifest.