请教 android studio 使用 flutter tts 的版本兼容问题

37 天前
 chenzehuan882

输出 ┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────┐ │ [!] Your project requires a newer version of the Kotlin Gradle plugin. │ │ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then │ │ update D:\project\learn\android\build.gradle: │ │ ext.kotlin_version = '<latest-version>' │ └────────────────────────────────────────────────────────────────────────────────────────────┘ Error: Gradle task assembleDebug failed with exit code 1

尝试过的 1.加入代码 buildscript { ext.kotlin_version = '<latest-version>' /// use latest-version,尝试过输入各种版本 repositories { google() mavenCentral()

2.手动下载 kotlin 并配置环境变量

下载的 kotlin 和 Android studio 里的插件都是 1.9.23

我应该做什么

626 次点击
所在节点    Flutter
3 条回复
AoEiuV020JP
37 天前
这也是个大坑,关键不同版本安卓项目这个 kotlin 版本号的位置都不一样,
总之最好是能把项目发出来看看,
新项目应该是 android/目录下的 settings.properties ,找找类似 kotlin 版本号的代码,
chenzehuan882
33 天前
AoEiuV020JP
32 天前
@chenzehuan882 #2 id "org.jetbrains.kotlin.android" version "1.7.10" apply false

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1037463

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX