Tri*_*leN 3 android gradle kotlin firebase
我连接了 firebase 并收到此错误,我该如何修复它?(类“com.google.firebase.auth.ktx.AuthKt”是使用不兼容版本的 Kotlin 编译的。其元数据的二进制版本是 1.7.1,预期版本是 1.5.1。)
buildscript {
ext {
compose_version = '1.1.0-beta01'
}
dependencies {
classpath 'com.google.gms:google-services:4.3.13'
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.2.1' apply false
id 'com.android.library' version '7.2.1' apply false
id 'org.jetbrains.kotlin.android' version '1.5.31' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)
最近我有同样的问题,
我用以下步骤修复了。
项目摇篮
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10'
or
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
Run Code Online (Sandbox Code Playgroud)
应用程序等级
implementation "org.jetbrains.kotlin:kotlin-reflect:1.7.10"
Run Code Online (Sandbox Code Playgroud)
您可以在下面的线程中找到更多详细信息。 模块是使用不兼容的 Kotlin 版本编译的。其元数据的二进制版本是1.5.1,预期版本是1.1.15
| 归档时间: |
|
| 查看次数: |
17168 次 |
| 最近记录: |