How do I resolve “Duplicate files copied in APK META-INF/*”

后端 未结 6 1599
粉色の甜心
粉色の甜心 2020-11-30 01:48

I am working at a commercial android application. I am also using some libraries licensed under different license types some of them stating the following:

If th

6条回答
  •  暖寄归人
    2020-11-30 02:03

    Add following into respective build.gradle file

    packagingOptions {
            exclude 'META-INF/ASL2.0'
            exclude 'META-INF/LICENSE'
            exclude 'META-INF/NOTICE'
            exclude 'META-INF/NOTICE.txt'
            exclude 'META-INF/LICENSE.txt'
            exclude 'META-INF/MANIFEST.MF'
        }
    

提交回复
热议问题