Muhilan Muhilan -4 years ago 136
Android Question

Cannot resolve error in Firebase Chat application

Im trying chat application using firebase. Im getting following error which could nit resolve myself,

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. duplicate entry: com/google/android/gms/internal/zzble.class

I have mentioned below my gradle file

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('', {
exclude group: '', module: 'support-annotations'
compile ''
compile ''

compile ''
compile 'com.firebaseui:firebase-ui:1.1.1'

compile ''

testCompile 'junit:junit:4.12'

apply plugin: ''

Answer Source

FirebaseUI has transitive dependencies on a number of the Firebase libraries. You must specify a version of FirebaseUI that is compatible with the Firebase libraries you are using. The table of compatible versions is listed in the FirebaseUI documentation. The most recent FirebaseUI version is 1.2.0, which works with library versions 10.2.0. A version of FirebaseUI for Firebase libs 10.2.4 has not been released.

The safe change is:

compile 'com.firebaseui:firebase-ui:1.2.0'
compile ''

You could try 1.2.0 with 10.2.4, but may encounter the same problem you are seeing now.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download