我打算从 Android Studio Bumblebee 升级到 Android Studio Dolphin。然而,我似乎从 Android Studio 收到了意外的警告:
正如您所看到的红色文本,它表明较新的 Android Studio 版本不支持 Kotlin!然而,在 Android Studio Dolphin 的详细信息中,图像显示了正在编程的 Kotlin 文件,这意味着 Android Studio Dolphin 的构建实际上支持 Kotlin:
我应该更新还是不更新,以及我应该如何修复这个错误,因为我是一名 Kotlin 程序员。有人可以帮忙吗?会很感激的。
编辑
至于Kotlin版本,我已经有了最新的Kotlin版本:
我面临一个错误:
该项目附加的一些 Kotlin 库已被较新的 Kotlin 编译器读取,但无法读取。请更新 Kotlin 插件
Kotlin 插件显示以下内容:
我的构建.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.4.32"
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}Run Code Online (Sandbox Code Playgroud)
我的 …