Firebase java.lang.NoSuchMethodError

Viewed 725
java.lang.NoSuchMethodError: com.google.firebase.FirebaseApp.zzcnu
at com.google.firebase.database.FirebaseDatabase.getInstance(Unknown Source)

How can I fix this error? Please help me. It took me so long to fix it and try and try other solution I found but unluckily my problem doesn't solve.

App Gradle Image

1 Answers

You have to use the same version of all the dependencies of Firebase for it to be compatible. You are using version 9 here whereas other dependency of Firebase are using 10. You need to make sure you use the same version for all. You can always check the docs of Firebase for the latest version. https://firebase.google.com/docs/database/android/start/?authuser=1

Related