码迷,mamicode.com
首页 > 移动开发 > 详细

Error:duplicate files during packaging of APK app\

时间:2015-09-04 12:58:15      阅读:215      评论:0      收藏:0      [点我收藏+]

标签:

Error:duplicate files during packaging of APK app\build\outputs\apk\app-debug-unali

这个错误的解决方法是:在app的build.gradle文件中增加以下内容:

    packagingOptions {
        exclude ‘META-INF/DEPENDENCIES.txt‘
        exclude ‘META-INF/LICENSE.txt‘
        exclude ‘META-INF/NOTICE.txt‘
        exclude ‘META-INF/NOTICE‘
        exclude ‘META-INF/LICENSE‘
        exclude ‘META-INF/DEPENDENCIES‘
        exclude ‘META-INF/notice.txt‘
        exclude ‘META-INF/license.txt‘
        exclude ‘META-INF/dependencies.txt‘
        exclude ‘META-INF/LGPL2.1‘
    }


Error:duplicate files during packaging of APK app\

标签:

原文地址:http://my.oschina.net/896698/blog/501054

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!