Giang T Giang T - 1 month ago 20
Android Question

java.lang.NoSuchMethodError: No virtual method zzait()Ljava/util/ArrayList; in class Lcom/ Error?

Hi I'm learning to use Firebase from an Udacity Course.
I got this error when I ran my app and have no clue about it.
11-23 16:48:34.995 3947-3947/

E/AndroidRuntime: FATAL EXCEPTION: main
Process:, PID: 3841
java.lang.NoSuchMethodError: No virtual method zzait()Ljava/util/ArrayList;
in class Lcom/google/android/gms/auth/api/signin/GoogleSignInOptions;
or its super classes (declaration of '' appears in /data/data/
at$3.zza(Unknown Source)
at$3.zzp(Unknown Source)
at$Builder.addApi(Unknown Source)
at com.firebase.ui.auth.util.CredentialsAPI.initGoogleApiClient(
at com.firebase.ui.auth.util.CredentialsAPI.<init>(
at com.firebase.ui.auth.ui.ChooseAccountActivity.onCreate(
at at
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(
11-23 16:48:35.176 3947-3975/ Failed to get GED Log Buf, err(0)

Can anyone help me?

UPDATE build.gradle

apply plugin: ''

repositories {
maven { url '' }
flatDir {
dirs 'libs'

android {
compileSdkVersion 24
buildToolsVersion "24.0.1"

defaultConfig {
applicationId ""
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), ''
packagingOptions {

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

compile ''
compile ''

// Displaying images
compile 'com.github.bumptech.glide:glide:3.6.1'
// Firebase
compile ''
compile 'com.firebaseui:firebase-ui-database:1.0.0'

// FirebaseUI Auth only
compile 'com.firebaseui:firebase-ui-auth:1.0.0'

// FirebaseUI Storage only
compile 'com.firebaseui:firebase-ui-storage:1.0.0'

// Single target that includes all FirebaseUI libraries above
compile 'com.firebaseui:firebase-ui:1.0.0'

// Firebase Auth
compile ''

apply plugin: ''


This is most likely do to a version incompatibility between Firebase, and FirebaseUI. I ran into the same issue, and spent 30-45 min trying to figure it out. Ultimately what I did in order to keep going with the "Firebase in a Weekend" tutorial was:

git checkout 1.04-firebase-auth-firebaseui-signin

This will switch to the branch at this point in the tutorial. It works fine after doing so.

Maybe not the ideal answer as to what the problem is, but will get you going again with the course.