react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

RNFirebaseAuth.java:96: error: cannot access zzbgl

Open vvusts opened this issue 8 years ago • 8 comments

Environment

Android

  1. Application Target Platform:

MacOS Sierra

  1. Development Operating System:

  2. Build Tools:

  3. React Native version:

0.52.1

  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

vvusts avatar May 02 '18 16:05 vvusts

Hello, I'm running trough the same error, did you find a solution ?

ghost avatar May 04 '18 10:05 ghost

I reverted everything and install again and it worked. But I put ā€œimplementationā€ only on firebase.

vvusts avatar May 04 '18 10:05 vvusts

when i build gradle it is building but when i build apk i am getting "zzbgl not found" can anyone help me out :-)

loadedthief avatar Jun 27 '18 06:06 loadedthief

@loadedthief even I can't run the app to the device, Can u tell if your problem solves?

prasad456 avatar Jul 24 '18 10:07 prasad456

any updates on this?

sangupandi avatar Oct 25 '18 13:10 sangupandi

I have the same error! Has anyone had any luck?

Sunna2005 avatar Mar 20 '19 15:03 Sunna2005

If you are experiencing this error for react-native-push-notification, setting

    firebaseVersion = "15.0.2" // default: "+"

helped me

noway avatar Aug 18 '19 06:08 noway

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

mikehardy avatar Aug 18 '19 15:08 mikehardy