2017-04-14 88 views
0

我在firebase上設置了聊天工具,它工作正常。但是當我添加map時,聊天停止了工作。聊天+地圖= NoSuchMethodError:com.google.firebase.FirebaseApp.zzUV

,當我試圖在應用程序中打開聊天我得到的錯誤

E/AndroidRuntime: FATAL EXCEPTION: main 
java.lang.NoSuchMethodError: com.google.firebase.FirebaseApp.zzUV 

我的依賴關係:

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 

    compile 'net.yslibrary.keyboardvisibilityevent:keyboardvisibilityevent:2.1.0' 
    compile 'com.android.support:appcompat-v7:25.1.1' 
    compile 'com.android.support:design:25.1.1' 
    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    compile 'com.firebaseui:firebase-ui:1.2.0' 
    compile 'com.google.android.gms:play-services-maps:10.2.1' 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:multidex:1.0.1' 
} 

allprojects { 
    repositories { 
     // ... 
     maven { url 'https://maven.fabric.io/public' } 
    } 
} 

回答

0

build.gradle文件Rebuild項目添加此。

compile 'com.google.firebase:firebase-messaging:10.2.1' 
compile 'com.google.firebase:firebase-core:10.2.1' 
+0

不,它不起作用 –

+0

這是什麼顯示相同的錯誤?請發佈新的* Logcat *。 –

+0

謝謝。但是,你的版本太舊了,我已經設置了10.0.1,它正在工作。 –