w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Gradle sync fails after adding Firebase dependency: duplicate files during packaging of APK

This is caused by a bug in how Gradle treats dependencies. It's being tracked in the Android OSP bug tracker.

You can work around this bug for Firebase by adding a couple of excludes to your app/build.gradle file:

android {
    packagingOptions {
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
    }
...
}




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.