Skip to content Skip to sidebar Skip to footer

Firebase Databasereference Gives No Virtual Method Error

I am trying to add firebase database some info by getting database reference but it gives the fallowing error: Caused by: java.lang.NoSuchMethodError: No virtual method zzckb()Z in

Solution 1:

Your versions of Firebase and Firebase UI need to line up according to the table on their Github Page.

For reference, should you choose to upgrade (I would highly recommend it).

FirebaseUI Version 1.2.0

Firebase/Play Services Version 10.2.0

Easy way to do this

ext {
    googlePlayVer = "10.2.0"
}

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'com.android.support:appcompat-v7:25.0.0'compile'com.android.support.constraint:constraint-layout:1.0.2'

    // For example
    compile"com.google.firebase:firebase-core:${googlePlayVer}"compile"com.google.firebase:firebase-auth:${googlePlayVer}"compile"com.google.firebase:firebase-database:${googlePlayVer}"

Post a Comment for "Firebase Databasereference Gives No Virtual Method Error"