Android studio执行assembleDebug失败处理

这里写图片描述

如果您的android studio报上图错误,那么就是你的jar包跟你的软件有冲突,也许是你的软件版本过高导致的。翻译过来就是说你的jar包有重复。因为你的软件不能识别你要使用哪一个jar包,所有你需要在buildTypes里面导入下面代码去进行判断

代码示例:

packagingOptions{
        exclude 'META-INFTICE' // will not include NOTICE file
        exclude 'META-INF/LICENSE' // will not include LICENSE file
        exclude 'META-INFtice'
        exclude 'META-INFtice.txt'
        exclude 'META-INFcense'
        exclude 'METAnse.   }

如图所示:

这里写图片描述

猜你喜欢

转载自blog.csdn.net/qq_41314972/article/details/82718581
今日推荐