android开发kotlin编译出错Module was compiled with an incompatible version of Kotlin

android开发kotlin编译出错Module was compiled with an incompatible version of Kotlin

  1. 问题描述

    Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.

  2. 问题原因

    不同模块使用不一致的kotlin版本编译,导致最后merge的时候版本冲突出错了

  3. 解决方法

    尽量升级Android Gradle Plugin插件到最新,检查implement使用的kotlin-gradle-plugin和kotlin-stdlib的kotlin版本是否一致

posted @ 2022-05-26 14:29  yongfengnice  阅读(13088)  评论(0)    收藏  举报