Bootstrap

Kotlin 插件1.4.10使用报错

前几天升级Android kotlin 插件到1.4.10 以为可以用了就没打包看下,今天去打包用下,发现报错,

You have duplicate classes with the same name : META-INF.versions.9.module-info please remove duplicate classes

先没想到是插件的问题,就去搜索解决方法,排除META-INF

    packagingOptions {
        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
      }

然而没有什么用。就去git 记录中查看到底改什么,发现只是改了个插件版本,再改会1.3.72 版本就好了。

这里记录下这个问题。