Android app gradle build compilation issue with firebase-ui-auth

140 views
Skip to first unread message

Dan Belostotsky

unread,
Mar 6, 2018, 12:02:48 AM3/6/18
to Firebase Google Group
Hi,
 I'm following Udacity Firebase course and have a small issue while setting up authentication process.
 When i add:

compile 'com.firebaseui:firebase-ui-auth:3.2.2'

 to my app.grade build i get the following:


The whole file looks like:
apply plugin: 'com.android.application'

repositories
{
    mavenLocal
()
    flatDir
{
        dirs
'libs'
   
}
}

android
{
    compileSdkVersion
27

    defaultConfig
{
        applicationId
"com.google.firebase.udacity.friendlychat"
        minSdkVersion
17
        targetSdkVersion
27
        versionCode
1
        versionName
"1.0"
   
}
    buildTypes
{
        release
{
            minifyEnabled
false
            proguardFiles getDefaultProguardFile
('proguard-android.txt'), 'proguard-rules.pro'
       
}
   
}
    packagingOptions
{
        exclude
'META-INF/LICENSE'
        exclude
'META-INF/LICENSE-FIREBASE.txt'
        exclude
'META-INF/NOTICE'
   
}
}

dependencies
{
    compile fileTree
(dir: 'libs', include: ['*.jar'])
    testCompile
'junit:junit:4.12'

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

   
// Displaying images
    compile
'com.github.bumptech.glide:glide:3.6.1'

   
//Firebase
    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'

Please assist.
Thank you.
Auto Generated Inline Image 1

Andreas B

unread,
Mar 6, 2018, 9:02:12 AM3/6/18
to Firebase Google Group
Dan,

firebase-ui-auth itself has a dependency on com.android.support:cardview-v7, probably in version 27.0.2, which is older than the other support libraries you are including yourself. Try going through the "Updating dependencies" section here: https://github.com/firebase/FirebaseUI-Android#upgrading-dependencies

Samuel Stern

unread,
Mar 6, 2018, 10:47:34 AM3/6/18
to fireba...@googlegroups.com
Thanks Andreas for answering!

Yes Dan the solution is in that link, specifically you'd want to add:
compile "com.android.support:design:27.1.0"          // You already have this
compile "com.android.support:customtabs:27.1.0"  // Add this
compile "com.android.support:cardview-v7:27.1.0" // Add this

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/2a316293-d640-4a97-8649-a5d3392401bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages