0

I have implemented Firebase notifications and it used to work just fine but now when I try to send a notification the app crash with your app unexpectedly stopped working

This is the log I got from google play console (my code seems fine)

java.lang.AbstractMethodError: 
  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)

My dependencies

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.github.javiersantos:AppUpdater:2.6.3' 
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
compile 'com.android.support:support-v4:24.2.0'
compile 'com.android.support:cardview-v7:24.2.0'
compile 'com.android.support:recyclerview-v7:24.2.0'
compile 'com.google.android.gms:play-services-ads:10.2.4'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.simplecityapps:recyclerview-fastscroll:1.0.11'
compile 'com.nshmura:snappysmoothscroller:1.0.0'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.android.gms:play-services-analytics:10.2.4'
compile 'com.github.loregr:lgsnackbar:1.0.2'
testCompile 'junit:junit:4.12'
}

Screenshot of the error after changing to 11.4.0 enter image description here

Thorvald
  • 3,424
  • 6
  • 40
  • 66

1 Answers1

0

Add Google Maven to your project level build.gradle file like this:

....
allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

Change your dependencies to this:

ompile 'com.google.android.gms:play-services-ads:11.4.0'
compile 'com.google.firebase:firebase-core:11.4.0'
compile 'com.google.firebase:firebase-messaging:11.4.0'
compile 'com.google.android.gms:play-services-analytics:11.4.0'

The list of all the latest version dependencies is here

Kartik Shandilya
  • 3,796
  • 5
  • 24
  • 42