It seems that different versions of android support and firebase are troublesome. But I didn't write the dependencies: there were there once I created the project and linked it to firebase.
-
1Possible duplicate of [All com.android.support libraries must use the exact same version specification](https://stackoverflow.com/questions/42374151/all-com-android-support-libraries-must-use-the-exact-same-version-specification) – Dec 05 '17 at 04:25
-
If you put the cursor on the underlined text, and press ctrl-return, it will make a suggestion as to what the correct version should be. – MSpeed Dec 05 '17 at 09:44
1 Answers
Change these two dependencies to the versions shown:
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'com.firebaseui:firebase-ui:3.0.0'
In future questions, please post text instead of an image. That allows the text to be copied, used for evaluation and answering.
There are three version numbers that must be made consistent:
- Firebase and Google Play libraries
- Android Support libraries
- FirebaseUI
The FirebaseUI documentation contains a table of compatible Firebase SDK versions. To determine the needed Support library version, you need to run a Gradle task to see the dependencies, or deduce the version by looking at the warnings Android Studio reports with red underlines on the dependencies in the app build.gradle file.
The latest version of Firebase is listed in the release notes. To keep this answer simple, I used 11.4.2. The latest is 11.6.2, but IIRC would require more extensive changes to your build setup for repos and classpaths.

- 37,759
- 6
- 111
- 158
-
Worked liked a charm! Thank you very much. How did you know which version numbers I should compile? – Dec 05 '17 at 06:46