没有静态方法zzb - 当用户firebase-database和facebook帐户工具包时 [英] No static method zzb - when user firebase-database and facebook account kit

查看:222
本文介绍了没有静态方法zzb - 当用户firebase-database和facebook帐户工具包时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用facebook时,firebase-database帐户工具包单独工作正常但是当我在项目中同时使用它们时它会给出错误 -

when using facebook, firebase-database account kit alone both work fine but when I am using both in same time in a project it give error-

java.lang.NoSuchMethodError:没有静态方法zzb(Ljava / lang / Object; Ljava / lang / Object;)Ljava / lang / Object;在课堂Lcom / google / android / gms / common / internal / zzac;或其超级类('com.google.android.gms.common.internal.zzac'的声明出现在/data/app/com.neccargo-2/split_lib_dependencies_apk.apk:classes14.dex)

我正在使用依赖项 -

I am using 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:26.+'
    compile 'com.android.support:design:26.+'
    compile 'com.android.volley:volley:1.0.0'
    compile 'com.android.support:recyclerview-v7:26.+'
    compile 'com.android.support:cardview-v7:26.+'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.facebook.android:account-kit-sdk:4.+'
    compile 'com.karumi:dexter:4.1.1'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.daimajia.slider:library:1.1.5@aar'
    compile 'fr.avianey.com.viewpagerindicator:library:2.4.1.1@aar'
    compile 'com.wdullaer:materialdatetimepicker:2.3.0'
    compile 'com.jakewharton:butterknife:8.7.0'
    compile 'com.flaviofaria:kenburnsview:1.0.7'
    compile 'com.google.firebase:firebase-database:10.0.1'
    testCompile 'junit:junit:4.12'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.7.0'
}

apply plugin: 'com.google.gms.google-services'

我很难找到解决方案。

推荐答案

尝试添加firebase核心库。

Try adding firebase core library.

compile 'com.google.firebase:firebase-core:10.0.1'

这篇关于没有静态方法zzb - 当用户firebase-database和facebook帐户工具包时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆