Android Studio 错误 Duplicate files copied in APK META-INF/LICENSE.txt

解决方法:编辑build.gradle  并在其中添加如下代码

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


阅读更多
文章标签: android studio android
个人分类: Problems
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭