Gradle duplicate entry error: META-INF/MANIFEST.MF (Or how to delete a file from jar)

后端 未结 5 1405
醉酒成梦
醉酒成梦 2020-12-20 11:34

I\'ve cloned a github repository because I wanted to study the code, but when I tried to build it in Android Studio, I ran into some trouble. After adding the google maven r

5条回答
  •  星月不相逢
    2020-12-20 12:01

    Either package it once or not at all:

    android {
        packagingOptions {
            pickFirst "META-INF/MANIFEST.MF"
            // exclude "META-INF/MANIFEST.MF"
        }
    }
    

提交回复
热议问题