react-native-firebase:compileDebugJavaWithJavac FAILED

Created on 28 Apr 2018  路  26Comments  路  Source: invertase/react-native-firebase

Issue

Upgrading to 15.0.0 causes> Task :react-native-firebase:compileDebugJavaWithJavac FAILED
12.0.1 works perfect

Environment

Android

  1. Application Target Platform:

macOS Sierra

  1. Development Operating System:

Android Studio 3.1.1

  1. Build Tools:

27.0.3

  1. React Native version:

0.55.3

  1. RNFirebase Version:

4.0.6

This is my firebase dependencies :

implementation(project(':react-native-firebase')) {
    transitive = false
}
implementation "com.google.android.gms:play-services-base:15.0.0"
implementation "com.google.firebase:firebase-core:15.0.0"
implementation "com.google.firebase:firebase-messaging:15.0.0"
implementation "com.google.firebase:firebase-perf:15.0.0"

image

> Task :react-native-firebase:compileDebugJavaWithJavac FAILED
/Users/maximtoyberman/projects/Kipmi/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/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java:219: error: cannot access zzbgp
            promiseWithUser(authResult.getUser(), promise);
                                      ^
  class file for com.google.android.gms.internal.zzbgp not found
/Users/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:116: error: incompatible types: no unique maximal instance exists for type variable T with upper bounds RemoteMessage,Parcelable
        RemoteMessage message = intent.getParcelableExtra("message");
                                                         ^
  where T is a type-variable:
    T extends Parcelable declared in method <T>getParcelableExtra(String)
/Users/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseBackgroundMessagingService.java:19: error: incompatible types: no unique maximal instance exists for type variable T with upper bounds RemoteMessage,Parcelable
      RemoteMessage message = intent.getParcelableExtra("message");
                                                       ^
  where T is a type-variable:
    T extends Parcelable declared in method <T>getParcelableExtra(String)
/Users/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:25: error: no suitable method found for putExtra(String,RemoteMessage)
      notificationEvent.putExtra("notification", message);
                       ^
    method Intent.putExtra(String,boolean) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to boolean)
    method Intent.putExtra(String,byte) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to byte)
    method Intent.putExtra(String,char) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to char)
    method Intent.putExtra(String,short) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to short)
    method Intent.putExtra(String,int) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to int)
    method Intent.putExtra(String,long) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to long)
    method Intent.putExtra(String,float) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to float)
    method Intent.putExtra(String,double) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to double)
    method Intent.putExtra(String,String) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to String)
    method Intent.putExtra(String,CharSequence) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to CharSequence)
    method Intent.putExtra(String,Parcelable) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Parcelable)
    method Intent.putExtra(String,Parcelable[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Parcelable[])
    method Intent.putExtra(String,Serializable) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Serializable)
    method Intent.putExtra(String,boolean[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to boolean[])
    method Intent.putExtra(String,byte[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to byte[])
    method Intent.putExtra(String,short[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to short[])
    method Intent.putExtra(String,char[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to char[])
    method Intent.putExtra(String,int[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to int[])
    method Intent.putExtra(String,long[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to long[])
    method Intent.putExtra(String,float[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to float[])
    method Intent.putExtra(String,double[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to double[])
    method Intent.putExtra(String,String[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to String[])
    method Intent.putExtra(String,CharSequence[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to CharSequence[])
    method Intent.putExtra(String,Bundle) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Bundle)
/Users/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:34: error: no suitable method found for putExtra(String,RemoteMessage)
        messagingEvent.putExtra("message", message);
                      ^
    method Intent.putExtra(String,boolean) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to boolean)
    method Intent.putExtra(String,byte) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to byte)
    method Intent.putExtra(String,char) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to char)
    method Intent.putExtra(String,short) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to short)
    method Intent.putExtra(String,int) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to int)
    method Intent.putExtra(String,long) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to long)
    method Intent.putExtra(String,float) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to float)
    method Intent.putExtra(String,double) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to double)
    method Intent.putExtra(String,String) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to String)
    method Intent.putExtra(String,CharSequence) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to CharSequence)
    method Intent.putExtra(String,Parcelable) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Parcelable)
    method Intent.putExtra(String,Parcelable[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Parcelable[])
    method Intent.putExtra(String,Serializable) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Serializable)
    method Intent.putExtra(String,boolean[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to boolean[])
    method Intent.putExtra(String,byte[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to byte[])
    method Intent.putExtra(String,short[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to short[])
    method Intent.putExtra(String,char[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to char[])
    method Intent.putExtra(String,int[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to int[])
    method Intent.putExtra(String,long[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to long[])
    method Intent.putExtra(String,float[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to float[])
    method Intent.putExtra(String,double[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to double[])
    method Intent.putExtra(String,String[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to String[])
    method Intent.putExtra(String,CharSequence[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to CharSequence[])
    method Intent.putExtra(String,Bundle) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Bundle)
/Users/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:41: error: no suitable method found for putExtra(String,RemoteMessage)
          headlessIntent.putExtra("message", message);
                        ^
    method Intent.putExtra(String,boolean) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to boolean)
    method Intent.putExtra(String,byte) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to byte)
    method Intent.putExtra(String,char) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to char)
    method Intent.putExtra(String,short) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to short)
    method Intent.putExtra(String,int) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to int)
    method Intent.putExtra(String,long) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to long)
    method Intent.putExtra(String,float) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to float)
    method Intent.putExtra(String,double) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to double)
    method Intent.putExtra(String,String) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to String)
    method Intent.putExtra(String,CharSequence) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to CharSequence)
    method Intent.putExtra(String,Parcelable) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Parcelable)
    method Intent.putExtra(String,Parcelable[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Parcelable[])
    method Intent.putExtra(String,Serializable) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Serializable)
    method Intent.putExtra(String,boolean[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to boolean[])
    method Intent.putExtra(String,byte[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to byte[])
    method Intent.putExtra(String,short[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to short[])
    method Intent.putExtra(String,char[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to char[])
    method Intent.putExtra(String,int[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to int[])
    method Intent.putExtra(String,long[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to long[])
    method Intent.putExtra(String,float[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to float[])
    method Intent.putExtra(String,double[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to double[])
    method Intent.putExtra(String,String[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to String[])
    method Intent.putExtra(String,CharSequence[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to CharSequence[])
    method Intent.putExtra(String,Bundle) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Bundle)
/Users/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:299: error: incompatible types: no unique maximal instance exists for type variable T with upper bounds RemoteMessage,Parcelable
        RemoteMessage message = intent.getParcelableExtra("notification");
                                                         ^
  where T is a type-variable:
    T extends Parcelable declared in method <T>getParcelableExtra(String)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
8 errors

Android Waiting for User Response

Most helpful comment

I Downgraded to Java 8 and everything seems to works fine

All 26 comments

@MaxToyberman Below the error you've added there should be a further stack trace with more information. We need that to be able to help you...

Here is the stack trace: @chrisbianca
Thank you

> Task :react-native-firebase:compileDebugJavaWithJavac FAILED
/Users/maximtoyberman/projects/Kipmi/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/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java:219: error: cannot access zzbgp
            promiseWithUser(authResult.getUser(), promise);
                                      ^
  class file for com.google.android.gms.internal.zzbgp not found
/Users/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:116: error: incompatible types: no unique maximal instance exists for type variable T with upper bounds RemoteMessage,Parcelable
        RemoteMessage message = intent.getParcelableExtra("message");
                                                         ^
  where T is a type-variable:
    T extends Parcelable declared in method <T>getParcelableExtra(String)
/Users/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseBackgroundMessagingService.java:19: error: incompatible types: no unique maximal instance exists for type variable T with upper bounds RemoteMessage,Parcelable
      RemoteMessage message = intent.getParcelableExtra("message");
                                                       ^
  where T is a type-variable:
    T extends Parcelable declared in method <T>getParcelableExtra(String)
/Users/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:25: error: no suitable method found for putExtra(String,RemoteMessage)
      notificationEvent.putExtra("notification", message);
                       ^
    method Intent.putExtra(String,boolean) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to boolean)
    method Intent.putExtra(String,byte) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to byte)
    method Intent.putExtra(String,char) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to char)
    method Intent.putExtra(String,short) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to short)
    method Intent.putExtra(String,int) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to int)
    method Intent.putExtra(String,long) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to long)
    method Intent.putExtra(String,float) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to float)
    method Intent.putExtra(String,double) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to double)
    method Intent.putExtra(String,String) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to String)
    method Intent.putExtra(String,CharSequence) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to CharSequence)
    method Intent.putExtra(String,Parcelable) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Parcelable)
    method Intent.putExtra(String,Parcelable[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Parcelable[])
    method Intent.putExtra(String,Serializable) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Serializable)
    method Intent.putExtra(String,boolean[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to boolean[])
    method Intent.putExtra(String,byte[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to byte[])
    method Intent.putExtra(String,short[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to short[])
    method Intent.putExtra(String,char[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to char[])
    method Intent.putExtra(String,int[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to int[])
    method Intent.putExtra(String,long[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to long[])
    method Intent.putExtra(String,float[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to float[])
    method Intent.putExtra(String,double[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to double[])
    method Intent.putExtra(String,String[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to String[])
    method Intent.putExtra(String,CharSequence[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to CharSequence[])
    method Intent.putExtra(String,Bundle) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Bundle)
/Users/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:34: error: no suitable method found for putExtra(String,RemoteMessage)
        messagingEvent.putExtra("message", message);
                      ^
    method Intent.putExtra(String,boolean) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to boolean)
    method Intent.putExtra(String,byte) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to byte)
    method Intent.putExtra(String,char) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to char)
    method Intent.putExtra(String,short) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to short)
    method Intent.putExtra(String,int) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to int)
    method Intent.putExtra(String,long) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to long)
    method Intent.putExtra(String,float) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to float)
    method Intent.putExtra(String,double) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to double)
    method Intent.putExtra(String,String) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to String)
    method Intent.putExtra(String,CharSequence) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to CharSequence)
    method Intent.putExtra(String,Parcelable) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Parcelable)
    method Intent.putExtra(String,Parcelable[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Parcelable[])
    method Intent.putExtra(String,Serializable) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Serializable)
    method Intent.putExtra(String,boolean[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to boolean[])
    method Intent.putExtra(String,byte[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to byte[])
    method Intent.putExtra(String,short[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to short[])
    method Intent.putExtra(String,char[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to char[])
    method Intent.putExtra(String,int[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to int[])
    method Intent.putExtra(String,long[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to long[])
    method Intent.putExtra(String,float[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to float[])
    method Intent.putExtra(String,double[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to double[])
    method Intent.putExtra(String,String[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to String[])
    method Intent.putExtra(String,CharSequence[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to CharSequence[])
    method Intent.putExtra(String,Bundle) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Bundle)
/Users/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:41: error: no suitable method found for putExtra(String,RemoteMessage)
          headlessIntent.putExtra("message", message);
                        ^
    method Intent.putExtra(String,boolean) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to boolean)
    method Intent.putExtra(String,byte) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to byte)
    method Intent.putExtra(String,char) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to char)
    method Intent.putExtra(String,short) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to short)
    method Intent.putExtra(String,int) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to int)
    method Intent.putExtra(String,long) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to long)
    method Intent.putExtra(String,float) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to float)
    method Intent.putExtra(String,double) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to double)
    method Intent.putExtra(String,String) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to String)
    method Intent.putExtra(String,CharSequence) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to CharSequence)
    method Intent.putExtra(String,Parcelable) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Parcelable)
    method Intent.putExtra(String,Parcelable[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Parcelable[])
    method Intent.putExtra(String,Serializable) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Serializable)
    method Intent.putExtra(String,boolean[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to boolean[])
    method Intent.putExtra(String,byte[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to byte[])
    method Intent.putExtra(String,short[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to short[])
    method Intent.putExtra(String,char[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to char[])
    method Intent.putExtra(String,int[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to int[])
    method Intent.putExtra(String,long[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to long[])
    method Intent.putExtra(String,float[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to float[])
    method Intent.putExtra(String,double[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to double[])
    method Intent.putExtra(String,String[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to String[])
    method Intent.putExtra(String,CharSequence[]) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to CharSequence[])
    method Intent.putExtra(String,Bundle) is not applicable
      (argument mismatch; RemoteMessage cannot be converted to Bundle)
/Users/maximtoyberman/projects/Kipmi/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:299: error: incompatible types: no unique maximal instance exists for type variable T with upper bounds RemoteMessage,Parcelable
        RemoteMessage message = intent.getParcelableExtra("notification");
                                                         ^
  where T is a type-variable:
    T extends Parcelable declared in method <T>getParcelableExtra(String)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
8 errors

Can I see your MainApplication.java?

@chrisbianca
Thanks

import android.app.Application;

import com.airbnb.android.react.maps.MapsPackage;
// import com.evollu.react.fcm.FIRMessagingPackage;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import com.facebook.CallbackManager;
import com.facebook.reactnative.androidsdk.FBSDKPackage;
import com.facebook.FacebookSdk;
import com.facebook.appevents.AppEventsLogger;
import com.i18n.reactnativei18n.ReactNativeI18n;
import com.learnium.RNDeviceInfo.RNDeviceInfo;
import com.lugg.ReactNativeConfig.ReactNativeConfigPackage;
import com.microsoft.codepush.react.CodePush;
import com.oblador.vectoricons.VectorIconsPackage;
import com.reactnative.ivpusic.imagepicker.PickerPackage;
// import com.toyberman.localeReload.RNReactNativeLocalePackage;
import io.invertase.firebase.RNFirebasePackage;
import io.invertase.firebase.messaging.RNFirebaseMessagingPackage;
import io.invertase.firebase.fabric.crashlytics.RNFirebaseCrashlyticsPackage;
import me.jhen.react.BadgePackage;
import java.util.Arrays;
import java.util.List;
import com.avishayil.rnrestart.ReactNativeRestartPackage;
import com.wheelpicker.WheelPickerPackage;
import io.invertase.firebase.perf.RNFirebasePerformancePackage;

public class MainApplication extends Application implements ReactApplication {

    private static CallbackManager mCallbackManager = CallbackManager.Factory.create();

    protected static CallbackManager getCallbackManager() {
        return mCallbackManager;
    }

    private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {

        @Override
        protected String getJSBundleFile() {
            return CodePush.getJSBundleFile();
        }

        @Override
        public boolean getUseDeveloperSupport() {
            return BuildConfig.DEBUG;
        }

        @Override
        protected List<ReactPackage> getPackages() {
            return Arrays.<ReactPackage>asList(
                    new MainReactPackage(),
                    new FBSDKPackage(mCallbackManager),
                    // new FIRMessagingPackage(),
                    new RNFirebasePackage(),
                    new RNFirebaseMessagingPackage(),
                    new RNFirebasePerformancePackage(),
                    new RNFirebaseCrashlyticsPackage(),
                    new CodePush(getResources().getString(R.string.reactNativeCodePush_androidDeploymentKey), getApplicationContext(), BuildConfig.DEBUG),
                    new VectorIconsPackage(),
                    new MapsPackage(),
                    new ReactNativeI18n(),
                    new RNDeviceInfo(),
                    new ReactNativeConfigPackage(),
                    new PickerPackage(),
                    new BadgePackage(),
                    new ReactNativeRestartPackage(),
                    new WheelPickerPackage()
            );
        }


        @Override
        protected String getJSMainModuleName() {
        return "index";
        }

    };

    @Override
    public void onCreate() {
        super.onCreate();
        SoLoader.init(this, /* native exopackage */ false);
        FacebookSdk.sdkInitialize(getApplicationContext());
        // If you want to use AppEventsLogger to log events.
        AppEventsLogger.activateApp(this);
    }




  @Override
  public ReactNativeHost getReactNativeHost() {
    return mReactNativeHost;
  }

}

I think you may have a mismatch in GMS/Firebase dependencies somewhere. Can I see you app/build.gradle too?

@chrisbianca

apply plugin: "com.android.application"
apply plugin: "com.google.firebase.firebase-perf"
apply plugin: "io.fabric"

import com.android.build.OutputFile


android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "innolert.kipmi"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 89
        versionName "1.3.9"
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
        multiDexEnabled true
    }

    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include "armeabi-v7a", "x86"
        }
    }
    buildTypes {
        release {
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
            signingConfig signingConfigs.release
        }
    }
    // applicationVariants are e.g. debug, release
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            // For each separate APK per architecture, set a unique version code as described here:
            // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
            def versionCodes = ["armeabi-v7a":1, "x86":2]
            def abi = output.getFilter(OutputFile.ABI)
            if (abi != null) {  // null for the universal-debug, universal-release variants
                output.versionCodeOverride =
                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
            }
        }
    }

    packagingOptions {
      exclude 'META-INF/rxjava.properties'
    }

}

dependencies {
    implementation(project(':react-native-firebase')) {
        transitive = false
    }
    implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
        transitive = true
    }
    implementation project(':react-native-restart')
    implementation project(':react-native-vector-icons')
    implementation project(':react-native-maps')
    implementation project(':react-native-i18n')
    implementation project(':react-native-code-push')
    implementation project(':react-native-android-badge')
    implementation project(':react-native-device-info')
    implementation project(':react-native-config')
    implementation project(':react-native-image-crop-picker')
    //compile project(':react-native-locale-listener')
    implementation project(':react-native-wheel-picker-android')
    implementation project(':react-native-fbsdk')
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:23.0.1"
    implementation "com.facebook.react:react-native:+"  // From node_modules
    implementation 'com.facebook.fresco:animated-base-support:1.3.0'
    implementation 'com.facebook.fresco:animated-gif:1.3.0'

    // Firebase dependencies
    implementation "com.google.android.gms:play-services-base:15.0.0"
    implementation "com.google.firebase:firebase-core:15.0.0"
    implementation "com.google.firebase:firebase-messaging:15.0.0"
    implementation "com.google.firebase:firebase-perf:15.0.0"
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use

configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        if (details.getRequested().getGroup() == 'com.google.android.gms') {
            // If different projects require different versions of
            // Google Play Services it causes a crash on run.
            // Fix by overriding version for all projects.
            details.useVersion('15.0.0')
        }
    }
}

task copyDownloadableDepsToLibs(type: Copy) {
    from configurations.compile
    into 'libs'
}
apply plugin: 'com.google.gms.google-services'

Yeah, so you have lots of libs that will be using gms libraries, e.g. react-native-device-info.

If you run ./gradlew app:dependencies you'll be able to see which libs depend on which versions of certain GMS libraries.

You'll then need to start excluding gms from these libs and adding them explicitly to your gradle file.

We have some more information here: https://rnfirebase.io/docs/v4.0.x/troubleshooting/android#Duplicate-Dex-Files-error-(build-time-error) and a linked guide which explains this in more detail here: https://medium.com/@suchydan/how-to-solve-google-play-services-version-collision-in-gradle-dependencies-ef086ae5c75f

I'm going to close this as the guides above should fix this for you. Let me know if you're still having issues once following the steps.

@chrisbianca I have followed your steps and I still have the same problem

Same error on my side

Same error on my side

Same error on my side

I solve this problem by change version such as
15.0.0 -> 15.0.1(maybe 15.0.2)
you can go to firebase or google doc and check which version should be update

https://github.com/invertase/react-native-firebase/releases/tag/v4.1.0 explains the steps needed to work with v15 plus of the google libraries.

I still seem to be getting the error. Here is my information below @chrisbianca

build.gradle

buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'
        classpath 'com.google.gms:google-services:3.2.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        google()
    }
}

app/build.gradle

apply plugin: "com.android.application"

import com.android.build.OutputFile

project.ext.react = [
    entryFile: "index.js"
]

apply from: "../../node_modules/react-native/react.gradle"

def enableSeparateBuildPerCPUArchitecture = false

def enableProguardInReleaseBuilds = false

android {
    compileSdkVersion 23

    defaultConfig {
        applicationId "com.glidecam"
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }
    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include "armeabi-v7a", "x86"
        }
    }
    buildTypes {
        release {
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }
    // applicationVariants are e.g. debug, release
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            // For each separate APK per architecture, set a unique version code as described here:
            // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
            def versionCodes = ["armeabi-v7a":1, "x86":2]
            def abi = output.getFilter(OutputFile.ABI)
            if (abi != null) {  // null for the universal-debug, universal-release variants
                output.versionCodeOverride =
                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
            }
        }
    }
}

dependencies {
    implementation(project(':react-native-firebase')) {
        transitive = false
    }
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:23.0.1"
    implementation "com.facebook.react:react-native:+"  // From node_modules

    // Firebase dependencies
    implementation "com.google.android.gms:play-services-base:15.0.1"
    implementation "com.google.firebase:firebase-core:15.0.2"
    implementation "com.google.firebase:firebase-messaging:15.0.2"
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
    from configurations.compile
    into 'libs'
}

apply plugin: 'com.google.gms.google-services'

gradle/wrapper/gradle-wrapper.properties

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

MainApplication.java

package com.glidecam;

import android.app.Application;

import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import io.invertase.firebase.RNFirebasePackage;

import java.util.Arrays;
import java.util.List;

public class MainApplication extends Application implements ReactApplication {

  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
    @Override
    public boolean getUseDeveloperSupport() {
      return BuildConfig.DEBUG;
    }

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
            new MainReactPackage(),
            new RNFirebasePackage()
      );
    }

    @Override
    protected String getJSMainModuleName() {
      return "index";
    }
  };

  @Override
  public ReactNativeHost getReactNativeHost() {
    return mReactNativeHost;
  }

  @Override
  public void onCreate() {
    super.onCreate();
    SoLoader.init(this, /* native exopackage */ false);
  }
}

And finally the error

> Task :react-native-firebase:compileDebugJavaWithJavac 
/Users/logan-osx/Glidecam/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/perf/RNFirebasePerformance.java:39: error: cannot access zze
    getOrCreateTrace(identifier).start();
                                ^
  class file for com.google.android.gms.internal.firebase-perf.zze not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-firebase:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
32 actionable tasks: 2 executed, 30 up-to-date

--stracktrace

cd android && ./gradlew installDebug --stacktrace

> Configure project :app 
Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

> Task :app:processDebugGoogleServices 
Parsing json file: /Users/logan-osx/Glidecam/android/app/google-services.json

> Task :react-native-firebase:compileDebugJavaWithJavac FAILED
/Users/logan-osx/Glidecam/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/perf/RNFirebasePerformance.java:39: error: cannot access zze
    getOrCreateTrace(identifier).start();
                                ^
  class file for com.google.android.gms.internal.firebase-perf.zze not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-firebase:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-firebase:compileDebugJavaWithJavac'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
        at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
        at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
        at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)
        at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:626)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:581)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:50)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:35)
        at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:98)
        at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:51)
        at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:37)
        at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:35)
        at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25)
        at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.java:39)
        at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.java:24)
        at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:207)
        at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:133)
        at com.android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.java:125)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
        at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:46)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
        ... 29 more


* Get more help at https://help.gradle.org

BUILD FAILED in 4s
32 actionable tasks: 2 executed, 30 up-to-date

Steps to recreate

  1. react-native init AppName
  2. react-native-git-upgrade
  3. Complete all steps at https://rnfirebase.io/docs/v4.1.x/installation/android
  4. react-native run-android
  5. Error: Execution failed for task ':react-native-firebase:compileDebugJavaWithJavac'.

Any update on this issue? @chrisbianca

I was able to get the app running by doing the following:

  1. Run react-native run-android and letting it fail which also opens the metro bundler. Leave this up.
  2. Now go to android studio and go to run. It will run and the metro bunder will load the dependencies.

    Not sure why this is and is annoying when I should be able to run react-native run-android. I also looked and the file /node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/perf/RNFirebasePerformance.java exists. So I am not sure what is creating this issue. I thought it may have been permissions so I made my node_modules accessible to everyone but that didn't work either. Thank you for any help on the issue.

I think there's lots of different issues here being bundled into one.

@gwhitcher which version of Java are you running? It seems that the latest version of the Firebase libraries have an issue with anything greater than Java 8.

Thanks for getting back to me @chrisbianca installing jdk8 solved it!

For anyone else that may run into this issue try installing jenv for easy JDK management.

/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/storage/
RNFirebaseStorage.java:523: error: cannot find symbol
List _downloadURLS = storageMetadata.getDownloadUrls();
^
symbol: method getDownloadUrls()
location: variable storageMetadata of type StorageMetadata
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

Task :react-native-firebase:compileDebugJavaWithJavac FAILED @

I Downgraded to Java 8 and everything seems to works fine

@chrisbianca
You're right
Little tricks with jenv solved issue

Instead of downgrading my current version of Java, I solved it by installing both Java 8 and 10,
sudo apt install openjdk-8-jre openjdk-8-jdk
then in gradle.properties added this line:
org.gradle.java.home=/path_to_Java

+1 I have the same issue.

@LeoUrushi you commented on an old issue, with no details. You can't expect help that way...

Same issue. I Downgrade to Java 8, but don't resolved. Some other solution?

This issue is stale and attracts me-toos with no detail. @VitorBrangioni - post a new issue if you are able to reproduce with the starter project. If the starter project works, the package is fine (note: I believe it is fine, I have used the starter recently, and the module in my app)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alizahid picture alizahid  路  3Comments

mahyarr picture mahyarr  路  3Comments

callmejm picture callmejm  路  3Comments

Damnum picture Damnum  路  3Comments

escobar5 picture escobar5  路  3Comments