Adding the Firebase dependency seems to break the Gradle build of the default Android Studio project. Here's what I did:
- I created a new default Android app in Android Studio. It built fine out of the box.
I added the Firebase Gradle dependency to the
app/build.gradle
file:... dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.firebase:firebase-client:1.0.16+' }
Gradle sync broke with this error:
Error:duplicate files during packaging of APK /Users/mimming/code/firebase-rawr/app/build/outputs/apk/app-debug-unaligned.apk Path in archive: META-INF/LICENSE Origin 1: /Users/me/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.2.2/stuff/jackson-annotations-2.2.2.jar Origin 2: /Users/me/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.2.2/stuff/jackson-databind-2.2.2.jar