On gradle:3.0.0 More than one file was found with OS independent path 'META-INF/ASL2.0'

前端 未结 3 717
孤街浪徒
孤街浪徒 2020-12-05 15:27

I have updated my Android studio to 3.0 and then he asked to upgrade to \'com.android.tools.build:gradle:3.0.0\'

everything went well until i decided t

3条回答
  •  不思量自难忘°
    2020-12-05 16:23

    You should add to application build.gradle your packagingOptions:

    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/ASL2.0'
    }
    

提交回复
热议问题