firebase - no responds signinWithEmailAndPassword android -


i tried intergrate onesignal push notifications between devices, keep getting following error. error disappear when upgrade firebase dependencies 11.2.0 signinwithemailandpassword , createaccountwithemailandpassword not work anymore.

fatal exception: main java.lang.nosuchmethoderror: no static method zzb(ljava/lang/object;ljava/lang/object;)ljava/lang/object; in class lcom/google/android/gms/common/internal/zzac; or super classes (declaration of 'com.google.android.gms.common.internal.zzac' appears in /data/app/com.example.ries.ecpay-c-fgodijghejlywws_hhva==/base.apk:classes10.dex)     @ com.google.firebase.provider.firebaseinitprovider.zza(unknown source:2)     @ com.google.firebase.provider.firebaseinitprovider.attachinfo(unknown source:0)     @ android.app.activitythread.installprovider(activitythread.java:6285)     @ android.app.activitythread.installcontentproviders(activitythread.java:5851)     @ android.app.activitythread.handlebindapplication(activitythread.java:5772)     @ android.app.activitythread.-wrap1(unknown source:0)     @ android.app.activitythread$h.handlemessage(activitythread.java:1661)     @ android.os.handler.dispatchmessage(handler.java:105)     @ android.os.looper.loop(looper.java:164)     @ android.app.activitythread.main(activitythread.java:6541)     @ java.lang.reflect.method.invoke(native method)     @ com.android.internal.os.zygote$methodandargscaller.run(zygote.java:240)     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:767)< 

my dependencies: when change dependencies 11.2.0 above mentioned error disappears signinwithemailandpassword method not doing anymore.

compile 'com.android.support:appcompat-v7:26.+' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.google.android.gms:play-services-auth:10.0.1' compile 'com.firebase:firebase-client-android:2.5.2' testcompile 'junit:junit:4.12' compile 'com.onesignal:onesignal:[3.6.0, 3.99.99]' compile 'com.google.android.gms:play-services-gcm'  compile 'com.google.firebase:firebase-core:10.0.1' compile 'com.google.firebase:firebase-auth:10.0.1' compile 'com.google.firebase:firebase-analytics:10.0.1' compile 'com.google.firebase:firebase-database:10.0.1' compile 'com.google.firebase:firebase-storage:10.0.1' compile 'com.google.firebase:firebase-messaging:10.0.1'  compile 'com.google.android.gms:play-services-gcm:10.0.1' compile 'com.google.android.gms:play-services-location:10.0.1'  compile 'com.android.support:support-v4:26.0.0' compile 'com.android.support:customtabs:26.0.0' compile 'com.android.support:multidex:1.0.1'<  

i switch on sign in email/password in firebase. not go inside oncomplete.

    mauth = firebaseauth.getinstance();     log.d("test", "auth instance oncreate " + mauth);     firebasedatabase = firebasedatabase.getinstance();     mref = firebasedatabase.getreference();     firebaseuser user = mauth.getcurrentuser();      signinbtn.setonclicklistener(new view.onclicklistener() {         @override         public void onclick(view view) {             string email = memail.gettext().tostring();             string pass = mpassword.gettext().tostring();              if(!email.isempty() && !pass.isempty()) {                 log.d("test", "in if not empty");                 mauth.signinwithemailandpassword(email, pass).addoncompletelistener(mainactivity.this, new oncompletelistener<authresult>() {                     @override                     public void oncomplete(@nonnull task<authresult> task) {                         log.d("test", "in oncomplete");                         task.getexception().getmessage();                         if (task.issuccessful()) {                             log.i("task:", "complete");                             intent = new intent(mainactivity.this, accountactivity.class);                             startactivity(i);                         }                          if (!task.issuccessful()) {                             toast.maketext(mainactivity.this, "login failed",                                     toast.length_short).show();                         }                     }                 });           

if forget add play services add them build.gradle

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

and update firebase libs

compile 'com.google.firebase:firebase-database:11.0.0'  

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -