I/ActivityManager( 1065): Start proc 2799:com.ahead_mobile.debug/u0a61 for activity com.ahead_mobile.debug/com.ahead_mobile.MainActivity
D/AndroidRuntime( 2799): Shutting down VM
E/AndroidRuntime( 2799): FATAL EXCEPTION: main
E/AndroidRuntime( 2799): Process: com.ahead_mobile.debug, PID: 2799
E/AndroidRuntime( 2799): java.lang.NoSuchMethodError: No static method zzic(Ljava/lang/String;)Z in class Lcom/google/android/gms/common/util/zzw; or its super classes (declaration of 'com.google.android.gms.common.util.zzw' appears in /data/app/com.ahead_mobile.debug-1/base.apk)
E/AndroidRuntime( 2799): at com.google.firebase.FirebaseOptions.<init>(Unknown Source)
E/AndroidRuntime( 2799): at com.google.firebase.FirebaseOptions.fromResource(Unknown Source)
E/AndroidRuntime( 2799): at com.google.firebase.FirebaseApp.zzeh(Unknown Source)
E/AndroidRuntime( 2799): at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source)
E/AndroidRuntime( 2799): at android.content.ContentProvider.attachInfo(ContentProvider.java:1696)
E/AndroidRuntime( 2799): at android.content.ContentProvider.attachInfo(ContentProvider.java:1671)
E/AndroidRuntime( 2799): at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source)
E/AndroidRuntime( 2799): at android.app.ActivityThread.installProvider(ActivityThread.java:4999)
E/AndroidRuntime( 2799): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4594)
E/AndroidRuntime( 2799): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4534)
E/AndroidRuntime( 2799): at android.app.ActivityThread.access$1500(ActivityThread.java:151)
E/AndroidRuntime( 2799): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
E/AndroidRuntime( 2799): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 2799): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 2799): at android.app.ActivityThread.main(ActivityThread.java:5254)
E/AndroidRuntime( 2799): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 2799): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 2799): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/AndroidRuntime( 2799): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
W/ActivityManager( 1065): Force finishing activity 1 com.ahead_mobile.debug/com.ahead_mobile.MainActivity
E/EGL_emulation( 1083): tid 1083: eglCreateSyncKHR(1209): error 0x3004 (EGL_BAD_ATTRIBUTE)
+1
is it fixed
How was it fixed?
I'm on RN0.33 and ran into this issue as well. I resolved it by updating my app/build.gradle to use a newer version of play-services-auth. The docs use 9.2.1. I swapped it for the following:
compile 'com.google.android.gms:play-services-auth:9.4.0'
@wkrause13 it works thanks
Got a similar issue, builds are failling on all our machines : java.lang.NoSuchMethodError: No static method zzb.
This happened as soon as I updated to Google Play Services 33, I could reproduce this on 3 different machines (one was running OSX, Linux flavors on the others).
Pretty sure the Firebase migration introduced some breaking changes.
compile "com.google.android.gms:play-services-base:+"
compile 'com.google.android.gms:play-services-maps:+'
in react-native-maps/android/build.gradle resolved my problem
If anyone else is facing this, to make it work with Play Services 33, I had to bump to 9.6.1 in build.gradle:
compile 'com.google.android.gms:play-services-auth:9.6.1'
Bear in mind that all of the Google services should use the same version.
still facing this error. any suggestions which version to use?
I don't use firebase in my project but i am getting this issue too!
Does anyone have any idea about this?
Finally found this and it worked for us: https://github.com/rebeccahughes/react-native-device-info/issues/187#issuecomment-315435365
Quoted below:
I've manage to solve this by adding
compile 'com.google.firebase:firebase-core:11.0.2'
inside android/app/build.gradle
dependencies {
compile 'com.google.firebase:firebase-core:11.0.2' // <--- add this one here (@mansarip)
compile project(':react-native-device-info')
compile project(':react-native-vector-icons')
compile project(':react-native-linear-gradient')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules
}
and of course, at the bottom of the file :
apply plugin: 'com.google.gms.google-services'
the problem is with the firebase dependencies ....
this is a version compatibility issue
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:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.google.firebase:firebase-storage:10.0.1'
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.firebaseui:firebase-ui-database:1.0.1'
testCompile 'junit:junit:4.12'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
}
mine was a problem with firebase-ui version 1.2.0
then i have changed it with 1.0.1 that matches the other versions of firebase.
for more visit this page....
In an effort to clean the issues up, this is being closed. Please open a new issue if you're still experiencing a problem.
@note89 @avishayhajbi @anbarasuthresnathan @nathanael540 @wagng @michaelknoch
Hey I got same issue. Make sure your graddle-wrapper version should be 4.4, gradle version should be 3.1.2 and play-service-auth version should be 15.0.0. If it is not then follow three steps to upgrade.
P.S : I'm using React-native Google Signin version v0.10.0.
Most helpful comment
I'm on RN0.33 and ran into this issue as well. I resolved it by updating my app/build.gradle to use a newer version of play-services-auth. The docs use 9.2.1. I swapped it for the following:
compile 'com.google.android.gms:play-services-auth:9.4.0'