错误:Module was compiled with an incompatible version of Kotlin. The binary version of its metadata

编程入门 行业动态 更新时间:2024-10-08 04:24:03

<a href=https://www.elefans.com/category/jswz/34/1771449.html style=错误:Module was compiled with an incompatible version of Kotlin. The binary version of its metadata"/>

错误:Module was compiled with an incompatible version of Kotlin. The binary version of its metadata

androidstudio升级kotlin之后,build时gradle就爆出了错误: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.

大概意思是Kotlin版本编译不兼容导致,我根据现有的版本,将build.gradle里面的ext.kotlin_version 改成 '1.5.31'就可以了,这个版本是怎么回事,暂时没有研究

buildscript {ext.kotlin_version = '1.5.31'repositories {google()jcenter()}dependencies {classpath 'com.android.tools.build:gradle:3.5.0'classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"}
}

更多推荐

错误:Module was compiled with an incompatible version of Kotlin. The binary versio

本文发布于:2024-02-28 07:00:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1768465.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   compiled   Module   incompatible   metadata

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!