Android Studio 打包过程中出现 Error:Execution failed for task

来源:互联网 发布:windows loader 8.1 编辑:程序博客网 时间:2024/06/14 17:07

发生类似这样的问题  是因为这些包太旧了  

所以就需要在android studio 里面新增一些代码  来兼容这些老版


    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'
    }





0 0
原创粉丝点击