0

I am taking a Udacity tutorial on Firebase and when I add the firebase ui auth dependency com.firebaseui:firebase-ui-auth:3.2.2 the build fails with errors. Please refer to the images and assist. Thanks.

The dependencies:

dependencies {
compile fileTree(include: ['*.jar'],dir: 'libs')
testcompile 'junit:junit:4.12'
compile 'com.android.support:design:24.2.0'
compile 'com.android.support:appcompat-v7:24.2.0'
//Displaying images 
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'com.google.firebase:firebase-core:11.8.0'
compile 'com.google.firebase:firebase-database:11.8.0'
compile 'com.google.firebase:firebase-auth:11.8.0'
compile 'com.firebaseui:firebase-ui-auth:3.2.2'
}
apply plugin 'com.google.gms.google-services'

The error enter image description here

Sweetie Anang
  • 332
  • 1
  • 3
  • 15
  • 2
    Please don't show images of code and errors. It's far better to copy the text into a code block in the question, so it's easier to read and search. – Doug Stevenson Mar 08 '18 at 17:14
  • @vivekverma yes they do, but since I did not create then and they are related to firebase ui, I imagine there may be a dependency conflict or something that is preventing it – Sweetie Anang Mar 08 '18 at 17:23
  • This is difficult to understand. Please copy and paste dependencies and logcat. It seems like your styles/resource file is the trouble-maker. – Rohit Sharma Mar 08 '18 at 17:32
  • @DougStevenson the question has an accepted answer and there are many ways to kill a cat ;). – Sweetie Anang Mar 08 '18 at 17:52
  • The primary reason for using text is that your question becomes searchable for people who are having the exact same problem. As a courtesy to everyone who use Stack Overflow, please consider using text instead of images. – Doug Stevenson Mar 08 '18 at 18:02

1 Answers1

1

Change the following:

compile 'com.android.support:design:24.2.0'
compile 'com.android.support:appcompat-v7:24.2.0'

to this:

compile 'com.android.support:design:27.0.2'
compile 'com.android.support:appcompat-v7:27.0.2'
Peter Haddad
  • 78,874
  • 25
  • 140
  • 134