Upon loading the application I get the following runtime error
06-16 13:18:07.233 4595-4595/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.myapp, PID: 4595
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 its super classes (declaration of 'com.google.android.gms.common.internal.zzac' appears in /data/data/com.myapp/files/instant-run/dex/slice-com.google.android.gms-play-services-base-11.0.1_42412c298ace10eded0d53c5e206fa3035d8c1d6-classes.dex)
at com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source)
at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source)
at android.app.ActivityThread.installProvider(ActivityThread.java:5853)
my app.gradle looks like this:
compile 'com.google.android.gms:play-services:10.2.6'
compile 'com.google.android.gms:play-services-gcm:10.2.6'
compile 'com.google.firebase:firebase-core:10.2.6'
I’ve tried setting all versions to 11.0.1 but I get
Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
When sending analytics events at runtime.
Has anyone else run into this issue?
Also, ran into this issue, fixed it by adding this to android/app/build.gradle
and in android/build.gradle
Make sure Google Play Services is up to date on the device you are testing.