When you add Firebase to My Application then it shows Fatal Exception

AndroidRuntime: FATAL EXCEPTION: pool-5-thread-1
    Process: com.stemdot.chopesdriver, PID: 29923
      java.lang.AbstractMethodError: abstract method "void com.google.firebase.iid.zzb.handleIntent(android.content.Intent)"
          at com.google.firebase.iid.zzb$1.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
          at java.lang.Thread.run(Thread.java:818)

      

+3


source to share


3 answers


I had the same problem. You have to keep the google playservice version the same as firebase messaging and firebase base version.



+2


source


I had the same problem. I followed the FCM tutorial and got this exception. I fixed this error by changing the firebase-messaging library to the latest version in the gradle file.

When I copied the tutorial, it was:

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

      



I changed it to the latest version and everything works:

compile 'com.google.firebase:firebase-messaging:11.0.1'

      

+2


source


Add these three lines to gradle ...

  compile 'com.google.firebase:firebase-core:10.2.1'
  compile 'com.google.firebase:firebase-messaging:10.2.1'
  compile("com.google.android.gms:play-services-gcm:10.2.1")

      

+1


source







All Articles