Ali
Ali

Reputation: 11

com.android.builder.merge.DuplicateRelativeFileException: More than one file was found with OS independent path 'META-INF/INDEX.LIST'

I’m getting this gradle build failure and couldn’t find any info in the documentation about it. Found several answers asking to set an exclude in the packagingOptions{} None of them helped(got another weird error) Can anyone please explain what causing this error, and provide a step by step investigation/solution to overcome it?

Upvotes: 1

Views: 4598

Answers (1)

Ranjan Kumar
Ranjan Kumar

Reputation: 1210

modify app/build.gradle.

android {
    packagingOptions {
        exclude 'META-INF/INDEX.LIST'
    }       
}

Upvotes: 3

Related Questions