gpt4 book ai didi

android - "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"

转载 作者:行者123 更新时间:2023-12-04 08:28:27 28 4
gpt4 key购买 nike

我是 Kotlin 应用程序开发的初学者。当我尝试构建应用程序时发生以下错误 -

e: C:/Users/Lenovo/.gradle/caches/transforms-2/files-2.1/32f0bb3e96b47cf79ece6482359b6ad2/jetified-kotlin-stdlib-jdk7-1.5.0.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: 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


enter image description here
是更新模块吗?那怎么更新呢?

最佳答案

对于仍在寻找答案的人,这是解决此问题的有效解决方案。在您的项目级别打开build.gradle文件,增加ext.kotlin_version从您喜欢的任何当前版本 1.5.0 , 到最新的稳定版本 1.6.0 (以当时最新的为准)。谢谢
您可以从这里获取最新版本:
https://kotlinlang.org/docs/releases.html#release-details

关于android - "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",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67448034/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com