从根本解决More than one file was found with OS independent path 'META-INF/xxxx'

android studio中,如果报More than one file was found with OS independent path 'META-INF/xxxx的错的时候

只需要在build.gradle中android{}里面加上

packagingOptions{
exclude ‘META-INF/xxxx’
}

就好了
如果还有其他的independent文件报错就继续加
直到把所有的independent文件都exclude掉
。。。

发布了7 篇原创文章 · 获赞 1 · 访问量 707

猜你喜欢

转载自blog.csdn.net/qq_41957544/article/details/88871332