RNFirebaseAuth.java:96: error: cannot access zzbgl
Environment
Android
- Application Target Platform:
MacOS Sierra
-
Development Operating System:
-
Build Tools:
-
React Native version:
0.52.1
- RNFirebase Version:
4.0.6
I followed all steps from here: https://rnfirebase.io/docs/v4.0.x/installation/android But I am always getting error:
> Task :react-native-firebase:compileDebugJavaWithJavac FAILED
/Users/user
/Desktop/myapp/myapp
/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java:96: error: cannot access zzbgl
if (user != null) {
^
class file for com.google.android.gms.internal.zzbgl not found
/Users/user/Desktop/myapp
/myapp/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java:219: error: cannot access zzbgp
promiseWithUser(authResult.getUser(), promise);
What I did wrong?
This is my app/build.gradle
implementation(project(':react-native-firebase')) {
transitive = false
}
implementation project(':react-native-device-info')
implementation(project(':react-native-background-geolocation')) {
exclude group: 'com.google.android.gms', module: 'play-services-location'
}
implementation "com.android.support:appcompat-v7:26.1.0"
implementation 'com.google.android.gms:play-services-location:15.0.0'
implementation project(':react-native-fabric')
implementation project(':react-native-webview-bridge')
implementation(project(':react-native-maps')){
exclude group: 'com.google.android.gms'
}
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:+"
implementation ("com.google.android.gms:play-services-base:15.0.0") {
force = true;
}
implementation ("com.google.android.gms:play-services-maps:15.0.0") {
force = true;
}
implementation ("com.google.android.gms:play-services-gcm:15.0.0") {
force = true;
}
implementation ('com.google.firebase:firebase-core:15.0.0') {
force = true;
}
implementation ('com.google.firebase:firebase-messaging:15.0.0') {
force = true;
}
Thanks
Hello, I'm running trough the same error, did you find a solution ?
I reverted everything and install again and it worked. But I put āimplementationā only on firebase.
when i build gradle it is building but when i build apk i am getting "zzbgl not found" can anyone help me out :-)
@loadedthief even I can't run the app to the device, Can u tell if your problem solves?
any updates on this?
I have the same error! Has anyone had any luck?
If you are experiencing this error for react-native-push-notification, setting
firebaseVersion = "15.0.2" // default: "+"
helped me
Wow, that's a version from more than a year ago. I'd look into why things can't be updated and get updated.. https://firebase.google.com/support/release-notes/android#sdk_update_-_may_2_2018