可能是因为Kotlin版本不兼容导致。可以尝试将Kotlin版本升级到1.5.0以上,并且在应用的build.gradle文件中添加以下依赖:
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
其中kotlin_version替换为当前使用的Kotlin版本。如果上述方法无效,可以尝试更改Androidx.core库的版本,例如将版本改为1.5.0或更低版本。
上一篇:androidx.constraintlayout.widget.ConstraintLayout:进度条不显示在MaterialButton上方。
下一篇:androidx.credentials.exceptions.GetCredentialCancellationException: 用户取消了活动。