当前位置: 首页 > 工具软件 > more plugin > 使用案例 >

More than one file was found with OS independent path ‘META-INF/plugin.xml‘

拓拔君博
2023-12-01

问题描述

More than one file was found with OS independent path ‘META-INF/plugin.xml’


原因分析:

看字面意思就知道这是文件重复,一行代码解决,将重复的文件移除


解决方案:

打开build.gradle在android层级下添加:

apply plugin: 'com.android.application'

android {
	...
	//此处添加
	//注意“META-INF/”后面跟的是你IDE报错的文件
    packagingOptions {
        exclude 'META-INF/plugin.xml'
    }

}

dependencies {
		...
}
 类似资料: