invertase / react-native-firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.69k stars 2.21k forks source link

🔥compileDebugJavaWithJavac FAILED #7334

Closed sania232 closed 1 year ago

sania232 commented 1 year ago

Issue

I'm unable to compile the new version of firebase on android, although IOS works perfectly fine. I think there must be some issue in gradle file but I have followed all related posts as well as https://rnfirebase.io/migrating-to-v6 . I have also made sure my react native version is working by upgrading it to v0.66.5 from https://github.com/facebook/react-native/issues/35210 I am currently updating my app to android 13(API 33) and therefore cannot change my target version. My previous build version was API 31 and I was using version 12.9.3 for react-native-firebase all modules. Here is what my terminal error looks like

``` D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\main\java\io\invertase\firebase\common\UniversalFirebaseModule.java:20: error: package android.content does not exist import android.content.Context; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\main\java\io\invertase\firebase\common\UniversalFirebaseModule.java:29: error: cannot find symbol private final Context context; ^ symbol: class Context location: class UniversalFirebaseModule D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\main\java\io\invertase\firebase\common\UniversalFirebaseModule.java:32: error: cannot find symbol protected UniversalFirebaseModule(Context context, String serviceName) { ^ symbol: class Context location: class UniversalFirebaseModule D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\main\java\io\invertase\firebase\common\UniversalFirebaseModule.java:38: error: cannot find symbol public Context getContext() { ^ symbol: class Context location: class UniversalFirebaseModule D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\main\java\io\invertase\firebase\common\UniversalFirebaseModule.java:42: error: cannot find symbol public Context getApplicationContext() { ^ symbol: class Context location: class UniversalFirebaseModule D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\main\java\io\invertase\firebase\common\UniversalFirebasePreferences.java:20: error: package android.content does not exist import android.content.Context; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\main\java\io\invertase\firebase\common\UniversalFirebasePreferences.java:21: error: package android.content does not exist import android.content.SharedPreferences; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\main\java\io\invertase\firebase\common\UniversalFirebasePreferences.java:27: error: cannot find symbol private SharedPreferences preferences; ^ symbol: class SharedPreferences location: class UniversalFirebasePreferences D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\main\java\io\invertase\firebase\common\UniversalFirebasePreferences.java:77: error: package SharedPreferences does not exist public SharedPreferences.Editor remove(String key) { ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\main\java\io\invertase\firebase\common\UniversalFirebasePreferences.java:81: error: cannot find symbol private SharedPreferences getPreferences() { ^ symbol: class SharedPreferences location: class UniversalFirebasePreferences D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\app\ReactNativeFirebaseApp.java:20: error: package android.content does not exist import android.content.Context; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\app\ReactNativeFirebaseApp.java:21: error: package android.util does not exist import android.util.Log; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\app\ReactNativeFirebaseApp.java:26: error: cannot find symbol private static Context applicationContext; ^ symbol: class Context location: class ReactNativeFirebaseApp D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\app\ReactNativeFirebaseApp.java:28: error: cannot find symbol public static Context getApplicationContext() { ^ symbol: class Context location: class ReactNativeFirebaseApp D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\app\ReactNativeFirebaseApp.java:32: error: cannot find symbol public static void setApplicationContext(Context applicationContext) { ^ symbol: class Context location: class ReactNativeFirebaseApp D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\app\ReactNativeFirebaseApp.java:42: error: cannot find symbol public static void initializeSecondaryApp(String name, Context applicationContext) { ^ symbol: class Context location: class ReactNativeFirebaseApp D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:20: error: package android.content does not exist import android.content.ContentProvider; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:21: error: package android.content does not exist import android.content.ContentValues; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:22: error: package android.content does not exist import android.content.Context; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:23: error: package android.content.pm does not exist import android.content.pm.ProviderInfo; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:24: error: package android.database does not exist import android.database.Cursor; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:25: error: package android.net does not exist import android.net.Uri; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:30: error: cannot find symbol public class ReactNativeFirebaseInitProvider extends ContentProvider { ^ symbol: class ContentProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:32: error: cannot find symbol public void attachInfo(Context context, ProviderInfo info) { ^ symbol: class Context location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:32: error: cannot find symbol public void attachInfo(Context context, ProviderInfo info) { ^ symbol: class ProviderInfo location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:53: error: cannot find symbol Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { ^ symbol: class Uri location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:52: error: cannot find symbol public Cursor query( ^ symbol: class Cursor location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:59: error: cannot find symbol public String getType(Uri uri) { ^ symbol: class Uri location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:65: error: cannot find symbol public Uri insert(Uri uri, ContentValues values) { ^ symbol: class Uri location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:65: error: cannot find symbol public Uri insert(Uri uri, ContentValues values) { ^ symbol: class ContentValues location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:65: error: cannot find symbol public Uri insert(Uri uri, ContentValues values) { ^ symbol: class Uri location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:70: error: cannot find symbol public int delete(Uri uri, String selection, String[] selectionArgs) { ^ symbol: class Uri location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:75: error: cannot find symbol public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { ^ symbol: class Uri location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:75: error: cannot find symbol public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { ^ symbol: class ContentValues location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseModule.java:20: error: package android.app does not exist import android.app.Activity; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\interfaces\ContextProvider.java:20: error: package android.app does not exist import android.app.Activity; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseModule.java:106: error: cannot find symbol public Context getApplicationContext() { ^ symbol: class Context location: class ReactNativeFirebaseModule D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseModule.java:110: error: cannot find symbol public Activity getActivity() { ^ symbol: class Activity location: class ReactNativeFirebaseModule D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\interfaces\ContextProvider.java:25: error: cannot find symbol Activity getActivity(); ^ symbol: class Activity location: interface ContextProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\interfaces\ContextProvider.java:29: error: cannot find symbol Context getApplicationContext(); ^ symbol: class Context location: interface ContextProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\RCTConvertFirebase.java:21: error: package android.util does not exist import android.util.Log; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\RCTConvertFirebase.java:70: error: cannot find symbol ReadableMap options, ReadableMap appConfig, Context context) { ^ symbol: class Context location: class RCTConvertFirebase D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseEventEmitter.java:20: error: package android.os does not exist import android.os.Handler; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseEventEmitter.java:21: error: package android.os does not exist import android.os.Looper; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseEventEmitter.java:22: error: package android.util does not exist import android.util.Log; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseEventEmitter.java:37: error: cannot find symbol private final Handler handler = new Handler(Looper.getMainLooper()); ^ symbol: class Handler location: class ReactNativeFirebaseEventEmitter D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseJSON.java:24: error: package org.json does not exist import org.json.JSONArray; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseJSON.java:25: error: package org.json does not exist import org.json.JSONException; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseJSON.java:26: error: package org.json does not exist import org.json.JSONObject; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseJSON.java:31: error: cannot find symbol private JSONObject jsonObject; ^ symbol: class JSONObject location: class ReactNativeFirebaseJSON D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseMeta.java:21: error: package android.content.pm does not exist import android.content.pm.ApplicationInfo; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseMeta.java:22: error: package android.content.pm does not exist import android.content.pm.PackageManager; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseMeta.java:23: error: package android.os does not exist import android.os.Bundle; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseMeta.java:37: error: cannot find symbol private Bundle getMetaData() { ^ symbol: class Bundle location: class ReactNativeFirebaseMeta D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebasePreferences.java:21: error: package android.content does not exist import android.content.SharedPreferences; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebasePreferences.java:31: error: cannot find symbol private SharedPreferences preferences; ^ symbol: class SharedPreferences location: class ReactNativeFirebasePreferences D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebasePreferences.java:80: error: cannot find symbol private SharedPreferences getPreferences() { ^ symbol: class SharedPreferences location: class ReactNativeFirebasePreferences D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:20: error: package android.app does not exist import android.app.ActivityManager; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:22: error: package android.graphics does not exist import android.graphics.Point; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:23: error: package android.graphics does not exist import android.graphics.Rect; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:24: error: package android.net does not exist import android.net.Uri; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:25: error: package android.os does not exist import android.os.Build; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:26: error: package android.util does not exist import android.util.Log; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:34: error: package org.json does not exist import org.json.JSONArray; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:35: error: package org.json does not exist import org.json.JSONException; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:36: error: package org.json does not exist import org.json.JSONObject; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:53: error: cannot find symbol public static int[] rectToIntArray(@Nullable Rect rect) { ^ symbol: class Rect location: class SharedUtils D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:58: error: cannot find symbol public static int[] pointToIntArray(@Nullable Point point) { ^ symbol: class Point location: class SharedUtils D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:63: error: cannot find symbol public static List pointsToIntsList(@Nullable Point[] points) { ^ symbol: class Point location: class SharedUtils D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:75: error: cannot find symbol public static Uri getUri(String uri) { ^ symbol: class Uri location: class SharedUtils D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:121: error: cannot find symbol public static boolean isAppInForeground(Context context) { ^ symbol: class Context location: class SharedUtils D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:184: error: cannot find symbol public static int getResId(Context ctx, String resName) { ^ symbol: class Context location: class SharedUtils D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:252: error: cannot find symbol public static WritableMap jsonObjectToWritableMap(JSONObject jsonObject) throws JSONException { ^ symbol: class JSONObject location: class SharedUtils D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:252: error: cannot find symbol public static WritableMap jsonObjectToWritableMap(JSONObject jsonObject) throws JSONException { ^ symbol: class JSONException location: class SharedUtils D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:277: error: cannot find symbol public static WritableArray jsonArrayToWritableArray(JSONArray jsonArray) throws JSONException { ^ symbol: class JSONArray location: class SharedUtils D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\SharedUtils.java:277: error: cannot find symbol public static WritableArray jsonArrayToWritableArray(JSONArray jsonArray) throws JSONException { ^ symbol: class JSONException location: class SharedUtils D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\utils\ReactNativeFirebaseUtilsModule.java:22: error: package android.content does not exist import android.content.IntentSender; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\utils\ReactNativeFirebaseUtilsModule.java:23: error: package android.os does not exist import android.os.Build; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\utils\ReactNativeFirebaseUtilsModule.java:24: error: package android.os does not exist import android.os.Environment; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\utils\ReactNativeFirebaseUtilsModule.java:25: error: package android.provider does not exist import android.provider.Settings; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\utils\ReactNativeFirebaseUtilsModule.java:26: error: package android.util does not exist import android.util.Log; ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\main\java\io\invertase\firebase\common\UniversalFirebasePreferences.java:85: error: cannot find symbol .getSharedPreferences(PREFERENCES_FILE, Context.MODE_PRIVATE); ^ symbol: variable Context location: class UniversalFirebasePreferences D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\app\ReactNativeFirebaseApp.java:33: error: cannot find symbol Log.d("ReactNativeFirebaseApp", "received application context."); ^ symbol: variable Log location: class ReactNativeFirebaseApp D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:31: error: method does not override or implement a method from a supertype @Override ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:33: error: cannot find symbol super.attachInfo(context, info); ^ symbol: variable super location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:36: error: method does not override or implement a method from a supertype @Override ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:40: error: cannot find symbol Context applicationContext = getContext(); ^ symbol: class Context location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:40: error: cannot find symbol Context applicationContext = getContext(); ^ symbol: method getContext() location: class ReactNativeFirebaseInitProvider D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:51: error: method does not override or implement a method from a supertype @Override ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:58: error: method does not override or implement a method from a supertype @Override ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:64: error: method does not override or implement a method from a supertype @Override ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:69: error: method does not override or implement a method from a supertype @Override ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseInitProvider.java:74: error: method does not override or implement a method from a supertype @Override ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseModule.java:107: error: cannot access ContextWrapper return getReactApplicationContext().getApplicationContext(); ^ class file for android.content.ContextWrapper not found D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\app\ReactNativeFirebaseAppModule.java:160: error: incompatible types: ReactApplicationContext cannot be converted to Context List firebaseApps = FirebaseApp.getApps(getReactApplicationContext()); ^ D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\app\ReactNativeFirebaseAppPackage.java:36: error: cannot find symbol ReactNativeFirebaseApp.setApplicationContext(reactContext.getApplicationContext()); ^ symbol: method getApplicationContext() location: variable reactContext of type ReactApplicationContext D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\RCTConvertFirebase.java:161: error: cannot find symbol Log.d(TAG, "utils:mapPutValue:unknownType:" + type); ^ symbol: variable Log location: class RCTConvertFirebase D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseEventEmitter.java:37: error: cannot find symbol private final Handler handler = new Handler(Looper.getMainLooper()); ^ symbol: class Handler location: class ReactNativeFirebaseEventEmitter D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseEventEmitter.java:37: error: cannot find symbol private final Handler handler = new Handler(Looper.getMainLooper()); ^ symbol: variable Looper location: class ReactNativeFirebaseEventEmitter D:\me_git\IOS_META\node_modules\@react-native-firebase\app\android\src\reactnative\java\io\invertase\firebase\common\ReactNativeFirebaseEventEmitter.java:145: error: cannot find symbol Log.wtf("RNFB_EMITTER", "Error sending Event " + event.getEventName(), e); ^ symbol: variable Log location: class ReactNativeFirebaseEventEmitter Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 100 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':react-native-firebase_app: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 2m 35s ```


Project Files

Javascript

Click To Expand

#### `package.json`: ```json { "name": "MetaSchool", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint .", "prettier": "prettier --write '*.js' 'src/**/*.js'", "postinstall": "patch-package" }, "dependencies": { "@expo/react-native-action-sheet": "^4.0.1", "@freakycoder/react-native-bounceable": ">= 0.2.2", "@invertase/react-native-apple-authentication": "^1.1.1", "@mapbox/polyline": "^1.1.1", "@ptomasroos/react-native-multi-slider": "^2.2.2", "@react-native-community/art": "^1.2.0", "@react-native-community/async-storage": "^1.10.0", "@react-native-community/cameraroll": "^1.4.1", "@react-native-community/checkbox": "^0.5.12", "@react-native-community/cli": "^7.0.3", "@react-native-community/datetimepicker": "^6.1.2", "@react-native-community/masked-view": "^0.1.10", "@react-native-community/netinfo": "6.1.0", "@react-native-community/viewpager": "^5.0.11", "@react-native-firebase/app": "^18.3.2", "@react-native-firebase/auth": "^18.3.2", "@react-native-firebase/firestore": "^18.3.2", "@react-native-firebase/functions": "^18.3.2", "@react-native-firebase/messaging": "^18.3.2", "@react-native-firebase/storage": "^18.3.2", "@react-native-google-signin/google-signin": "^9.0.2", "@react-native-picker/picker": "^2.1.0", "@react-navigation/bottom-tabs": "^6.0.5", "@react-navigation/compat": "^5.3.20", "@react-navigation/drawer": "^6.6.1", "@react-navigation/elements": "^1.3.6", "@react-navigation/native": "^6.0.2", "@react-navigation/stack": "^6.3.1", "@robinbobin/react-native-google-drive-api-wrapper": "^1.2.1", "@skele/components": "^1.0.0-alpha.40", "axios": "^0.25.0", "base-64": "^0.1.0", "crypto-js": "^3.1.9-1", "date-fns": "^2.28.0", "dopenative": "^0.0.24", "expo": "43.0.4", "expo-ads-facebook": "11.0.3", "expo-av": "11.0.0", "expo-blur": "10.0.3", "expo-camera": "12.0.3", "expo-document-picker": "10.0.3", "expo-facebook": "12.0.3", "expo-file-system": "13.0.3", "expo-image-picker": "11.0.3", "expo-localization": "11.0.0", "formik": "^2.1.0", "get-video-id": "^3.5.3", "i18n-js": "^3.5.0", "invert-color": "^2.0.0", "jest-haste-map": "^25.1.0", "jest-serializer": "^25.1.0", "jest-worker": "^25.1.0", "lodash": "^4.17.21", "lodash.isequal": "^4.5.0", "lodash.memoize": "^4.1.2", "mobx": "^5.14.0", "mobx-react": "^6.1.3", "moment": "^2.29.3", "oauth-1.0a": "^2.2.6", "patch-package": "^6.5.0", "postinstall": "patch-package", "postinstall-postinstall": "^2.1.0", "prop-types": "^15.8.1", "react": "17.0.2", "react-native": "0.66.5", "react-native-actionsheet": "^2.4.2", "react-native-animatable": "^1.3.3", "react-native-app-intro-slider": "^4.0.4", "react-native-appearance": "^0.3.4", "react-native-autogrow-textinput": "^5.4.0", "react-native-button": "^3.0.1", "react-native-calendars": "^1.1283.0", "react-native-chart-kit": "^6.12.0", "react-native-confirmation-code-field": "^6.5.0", "react-native-countdown-circle-timer": "^3.0.9", "react-native-countdown-component": "^2.7.1", "react-native-countdown-fixed": "^2.7.1", "react-native-create-thumbnail": "^1.6.4", "react-native-dialog-input": "^1.0.7", "react-native-document-picker": "^8.1.1", "react-native-dropdown-picker": "^5.4.0", "react-native-dynamic-search-bar": "^2.0.2", "react-native-element-dropdown": "^2.9.0", "react-native-elements": "^3.4.2", "react-native-fast-image": "^8.3.4", "react-native-ffmpeg": "^0.5.0", "react-native-file-viewer": "^2.1.5", "react-native-fs": "^2.20.0", "react-native-geocoding": "^0.4.0", "react-native-gesture-handler": "^1.7.0", "react-native-google-places-autocomplete": "^2.1.2", "react-native-html-to-pdf": "^0.12.0", "react-native-image-crop-picker": "^0.33.2", "react-native-image-picker": "^1.1.0", "react-native-image-progress": "^1.1.1", "react-native-image-resizer": "^1.2.6", "react-native-image-view": "^2.1.9", "react-native-indicators": "^0.17.0", "react-native-iphone-x-helper": "^1.2.1", "react-native-keyboard-aware-scroll-view": "^0.9.5", "react-native-keyboard-aware-view": "^0.0.14", "react-native-keyboard-spacer": "^0.4.1", "react-native-keyboard-tracking-view": "^5.7.0", "react-native-linear-gradient": "^2.6.2", "react-native-localize": "^1.4.1", "react-native-maps": "0.27.1", "react-native-modal": "^11.5.6", "react-native-modalbox": "^2.0.0", "react-native-paper": "^4.12.1", "react-native-parsed-text": "^0.0.22", "react-native-phone-input": "^1.2.0", "react-native-popup-menu": "^0.15.9", "react-native-progress": "^5.0.0", "react-native-reanimated": "^1.13.1", "react-native-responsive-screen": "^1.4.1", "react-native-safe-area-context": "3.4.1", "react-native-screens": "^3.13.1", "react-native-search-bar": "^3.5.1", "react-native-search-box": "^0.0.19", "react-native-slider": "^0.11.0", "react-native-spinkit": ">= 1.5.0", "react-native-splash-screen": "^3.2.0", "react-native-svg": "^12.3.0", "react-native-swiper": "^1.6.0-nightly.5", "react-native-thumbnail-video": "^0.1.2", "react-native-ui-lib": "^5.19.0", "react-native-vector-icons": "^9.0.0", "react-native-video": "^5.1.0-alpha8", "react-native-view-more-text": "^2.1.0", "react-native-webview": "^11.18.1", "react-native-youtube-iframe": "^2.2.2", "react-redux": "^7.1.1", "redux": "^4.0.4", "redux-logger": "^3.0.6", "redux-thunk": "^2.3.0", "rn-fetch-blob": "^0.12.0", "toggle-switch-react-native": "^3.3.0", "uuidv4": "^5.0.1" }, "devDependencies": { "@babel/core": "^7.16.5", "@babel/plugin-proposal-decorators": "^7.6.0", "@babel/runtime": "^7.16.5", "@react-native-community/eslint-config": "^3.0.1", "babel-jest": "^27.4.5", "babel-plugin-transform-remove-console": "^6.9.4", "eslint": "^8.5.0", "jest": "^27.4.5", "jetifier": "^1.6.6", "metro-react-native-babel-preset": "^0.66.2", "prettier": "^2.3.2", "react-test-renderer": "17.0.2", "remote-redux-devtools": "^0.5.16" }, "jest": { "preset": "react-native" } } ``` #### `firebase.json` for react-native-firebase v6: i dont know what this is. If someone can point me out to where it is, I will be happy to share it. ```json # N/A ```

iOS

Click To Expand

#### `ios/Podfile`: - [ ] I'm not using Pods - [x] I'm using Pods and my Podfile looks like: ```ruby require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking") require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods") require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules") platform :ios, '13.0' require 'json' podfile_properties = JSON.parse(File.read('./Podfile.properties.json')) rescue {} target 'Instamobile' do use_frameworks! :linkage => :static config = use_native_modules! use_react_native!( :path => config[:reactNativePath], # to enable hermes on iOS, change `false` to `true` and then install pods :hermes_enabled => podfile_properties['expo.jsEngine'] == 'hermes' ) pod 'ReactNativeART', :path => '../node_modules/@react-native-community/art' pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' pod 'RNFS', :path => '../node_modules/react-native-fs' pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler' post_install do |installer| react_native_post_install(installer) __apply_Xcode_12_5_M1_post_install_workaround(installer) # Workaround `Cycle inside FBReactNativeSpec` error for react-native 0.64 # Reference: https://github.com/software-mansion/react-native-screens/issues/842#issuecomment-812543933 installer.pods_project.targets.each do |target| if (target.name&.eql?('FBReactNativeSpec')) target.build_phases.each do |build_phase| if (build_phase.respond_to?(:name) && build_phase.name.eql?('[CP-User] Generate Specs')) target.build_phases.move(build_phase, 0) end end end end end use_expo_modules! end ``` #### `AppDelegate.m`: ```objc /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import "AppDelegate.h" #import #import #import #import #import NSString * const kEXCurrentAPNSTokenDefaultsKey = @"EXCurrentAPNSTokenDefaultsKey"; @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { if ([FIRApp defaultApp] == nil) { [FIRApp configure]; } RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"MetaSchool" initialProperties:nil]; if (@available(iOS 13.0, *)) { rootView.backgroundColor = [UIColor systemBackgroundColor]; } else { rootView.backgroundColor = [UIColor whiteColor]; } self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; UIViewController *rootViewController = [UIViewController new]; rootViewController.view = rootView; self.window.rootViewController = rootViewController; [self.window makeKeyAndVisible]; [application registerForRemoteNotifications]; return YES; } - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { [[NSUserDefaults standardUserDefaults] setObject:deviceToken forKey:kEXCurrentAPNSTokenDefaultsKey]; } - (NSArray> *)extraModulesForBridge:(RCTBridge *)bridge { // If you'd like to export some custom RCTBridgeModules that are not Expo modules, add them here! return @[]; } - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { #if DEBUG return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; #else return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; #endif } @end ```


Android

Click To Expand

#### Have you converted to AndroidX? - [x] my application is an AndroidX application? yes my gradle.properties has android.useAndroidX=true - [ ] I am using `android/gradle.settings` `jetifier=true` for Android compatibility? - [ ] I am using the NPM package `jetifier` for react-native compatibility? #### `android/build.gradle`: // Top-level build file where you can add configuration options common to all sub-projects/modules. ```groovy buildscript { ext { kotlin_version = "1.6.0" buildToolsVersion = "31.0.0" minSdkVersion = 24 compileSdkVersion = 33 targetSdkVersion = 33 supportLibVersion = "33.0.2" googlePlayServicesAuthVersion = "16.0.1" } repositories { google() mavenCentral() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:4.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.0" classpath 'com.google.gms:google-services:4.3.15' } } allprojects { repositories { mavenCentral() mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } maven { // expo-camera bundles a custom com.google.android:cameraview url "$rootDir/../node_modules/expo-camera/android/maven" } maven { url 'https://maven.google.com' } maven { url 'https://jitpack.io' } google() } } ``` #### `android/app/build.gradle`: ```groovy apply plugin: "com.android.application" apply plugin: 'com.google.gms.google-services' import com.android.build.OutputFile project.ext.react = [ enableHermes: false, // clean and rebuild if changing ] def enableSeparateBuildPerCPUArchitecture = true def enableProguardInReleaseBuilds = false def jscFlavor = 'org.webkit:android-jsc:+' def enableHermes = project.ext.react.get("enableHermes", false); def nativeArchitectures = project.getProperties().get("reactNativeDebugArchitectures") android { compileSdkVersion rootProject.ext.compileSdkVersion lintOptions { checkReleaseBuilds false } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } dexOptions { javaMaxHeapSize "8g" jumboMode true } defaultConfig { applicationId "io.metaschool" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" vectorDrawables.useSupportLibrary = true missingDimensionStrategy 'react-native-camera', 'general' multiDexEnabled true } splits { abi { reset() enable enableSeparateBuildPerCPUArchitecture universalApk true // If true, also generate a universal APK include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" } } signingConfigs { debug { storeFile file('debug.keystore') storePassword 'android' keyAlias 'androiddebugkey' keyPassword 'android' } release { storeFile file('my-upload-key.keystore') storePassword 'passwordAndroid' keyAlias 'my-key-alias' keyPassword 'passwordAndroid' } } buildTypes { debug { signingConfig signingConfigs.debug if (nativeArchitectures) { ndk { abiFilters nativeArchitectures.split(',') } } } release { // Caution! In production, you need to generate your own keystore file. // see https://reactnative.dev/docs/signed-apk-android. signingConfig signingConfigs.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: // https://developer.android.com/studio/build/configure-apk-splits.html def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 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 { pickFirst '**/armeabi-v7a/libc++_shared.so' pickFirst '**/x86/libc++_shared.so' pickFirst '**/arm64-v8a/libc++_shared.so' pickFirst '**/x86_64/libc++_shared.so' pickFirst '**/x86/libjsc.so' pickFirst '**/armeabi-v7a/libjsc.so' } } apply from: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute().text.trim(), "../react.gradle") dependencies { compile project(':react-native-html-to-pdf') implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "com.facebook.react:react-native:+" // From node_modules implementation 'androidx.appcompat:appcompat:1.1.0-rc01' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02' implementation 'androidx.multidex:multidex:2.0.1' implementation 'com.facebook.android:facebook-android-sdk:5.13.0' // implementation platform('com.google.firebase:firebase-bom:32.0.0') // implementation 'com.google.firebase:firebase-analytics' implementation project(':react-native-fs') //expo def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true"; def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true"; def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true"; // If your app supports Android versions before Ice Cream Sandwich (API level 14) // All fresco packages should use the same version if (isGifEnabled || isWebpEnabled) { implementation 'com.facebook.fresco:fresco:2.0.0' implementation 'com.facebook.fresco:imagepipeline-okhttp3:2.0.0' } if (isGifEnabled) { // For animated gif support implementation 'com.facebook.fresco:animated-gif:2.5.0' } if (isWebpEnabled) { // For webp support implementation 'com.facebook.fresco:webpsupport:2.0.0' if (isWebpAnimatedEnabled) { // Animated webp support implementation 'com.facebook.fresco:animated-webp:2.0.0' } } if (enableHermes) { debugImplementation files(new File(["node", "--print", "require.resolve('hermes-engine/package.json')"].execute().text.trim(), "../android/hermes-debug.aar")) releaseImplementation files(new File(["node", "--print", "require.resolve('hermes-engine/package.json')"].execute().text.trim(), "../android/hermes-release.aar")) } else { implementation jscFlavor } // Use: def instead of val if you are not using Kotlin Gradle(.kts) implementation 'androidx.core:core-splashscreen:1.0.0-beta01' } // 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.implementation into 'libs' } apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute().text.trim(), "../native_modules.gradle"); applyNativeModulesAppBuildGradle(project) apply plugin: 'com.google.gms.google-services' ``` #### `android/settings.gradle`: ```groovy rootProject.name = 'MetaSchool' include ':react-native-html-to-pdf' project(':react-native-html-to-pdf').projectDir = new File(rootProject.projectDir,'../node_modules/react-native-html-to-pdf/android') include ':react-native-fs' project(':react-native-fs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fs/android') apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute().text.trim(), "../native_modules.gradle"); applyNativeModulesSettingsGradle(settings) apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute().text.trim(), "../scripts/autolinking.gradle"); useExpoModules() include ':react-native-google-signin' project(':react-native-google-signin').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-google-signin/google-signin/android') include ':app' include ':react-native-fs' project(':react-native-fs').projectDir = new File(settingsDir, '../node_modules/react-native-fs/android') ``` #### `MainApplication.java`: ```java package io.metaschool; import android.content.Intent; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import android.os.Handler; import android.os.Build; import android.widget.Toast; import android.os.Looper; public class SplashActivity extends AppCompatActivity { private boolean keep = true; private final int DELAY = 3000; @Override protected void onCreate(Bundle savedInstanceState) { // Toast.makeText(getApplicationContext(),"Im starting splash activity",Toast.LENGTH_SHORT).show(); //androidx.core.splashscreen.SplashScreen splashScreen= a // native splash screen which will be skipped System.out.println("It is more than 31"); androidx.core.splashscreen.SplashScreen splashScreen= androidx.core.splashscreen.SplashScreen.installSplashScreen(this); System.out.println("I am going to call oncreATE"); super.onCreate(savedInstanceState); System.out.println("I just finished oncreate"); // androidx.core.splashscreen.SplashScreen.installSplashScreen(this); // splashScreen.setKeepOnScreenCondition(() -> true); Intent intent = new Intent(this, MainActivity.class); //splashScreen.setKeepOnScreenCondition(() -> keep); splashScreen.setKeepOnScreenCondition(new androidx.core.splashscreen.SplashScreen.KeepOnScreenCondition() { @Override public boolean shouldKeepOnScreen() { System.out.println("IN should keep screen where keep is "+keep); if(!keep){ System.out.println("I am in IF"); startActivity(intent); finish(); } return keep; } }); Handler handler = new Handler(); handler.postDelayed(runner, DELAY); // Toast.makeText(getApplicationContext(),"Im ending splash activity",Toast.LENGTH_SHORT).show(); } private final Runnable runner = new Runnable() { @Override public void run() { System.out.println("Im runningggg"); keep = false; System.out.println("Keep is "+keep); } }; } ``` #### `AndroidManifest.xml`: ```xml ```


Environment

Click To Expand

**`react-native info` output:** ``` info Fetching system and libraries information... System: OS: Windows 10 10.0.19045 CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz Memory: 1.36 GB / 11.92 GB Binaries: Node: 16.14.2 - C:\Users\SANIAS~1\AppData\Local\Temp\yarn--1694045117604-0.5276388470082864\node.CMD Yarn: 1.22.19 - C:\Users\SANIAS~1\AppData\Local\Temp\yarn--1694045117604-0.5276388470082864\yarn.CMD npm: 8.5.0 - C:\Program Files\nodejs\npm.CMD Watchman: 20220605.192726.0 - C:\ProgramData\chocolatey\bin\watchman.EXE SDKs: Android SDK: Not Found Windows SDK: AllowAllTrustedApps: Enabled Versions: 10.0.18362.0 IDEs: Android Studio: AI-212.5712.43.2112.8815526 Visual Studio: 16.10.31410.357 (Visual Studio Community 2019) Languages: Java: 11.0.14.1 - C:\Program Files\OpenJDK\openjdk-11.0.14.1_1\bin\javac.EXE npmPackages: @react-native-community/cli: ^7.0.3 => 7.0.4 react: 17.0.2 => 17.0.2 react-native: 0.66.5 => 0.66.5 react-native-windows: Not Found npmGlobalPackages: *react-native*: Not Found Done in 20.64s. ``` - **Platform that you're experiencing the issue on**: - [ ] iOS - [x] Android - [ ] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **`react-native-firebase` version you're using that has this issue:** - all of my firebase packages are of 18.3.2 version - **`Firebase` module(s) you're using that has the issue:** - \@react-native-firebase\app - **Are you using `TypeScript`?** - No


carlmagumpara commented 1 year ago

Same error here, any update?

carlmagumpara commented 1 year ago

Fixed by downgrading to v18.3.1

mabc21 commented 1 year ago

I also have the same problem as the OP. Originally 18.2.0 then I upgraded it but same error.

sania232 commented 1 year ago

I fixed it by upgrading my gradle actually. I was using a 6.x.x gradle which was was using an old version of build tools. Once I upgraded to 7.0.2, it used a newer build tools version which fixed the errors for me.

mabc21 commented 1 year ago

I needed to keep my gradle version at 6.8.4 because of a conflict with another package (I really needed to get this running for now and that said conflict needs time to resolve). I downgraded my firebase packages to 17.5.0 for the meantime and it worked.

mikehardy commented 1 year ago

OP fixed error by using current tools Other commenters have dependency transitives barring update but can use downgraded packages as workaround This is going to be project-specific unfortunately - in general we test with current dependencies + current targets + current tools as we must handle new versions of things when they come out (solving incompatibilities / handling new platform APIs) and compatibility with older versions of things is not always possible to test

tuanha28 commented 1 year ago

Same error here, any update? I try downgrading to v18.3.1, gradle upgraded to 7.0.2 but not work

KaulSalil commented 1 year ago

Just adding my 2 cents best to check the version of gradle being used in gradle-wrapper.properties , how old is the version and the corresponding version of react-native-firebase . Use the following link to to check https://www.npmjs.com/package/@react-native-firebase/app?activeTab=versions . I am using gradle-6.9-all with "@react-native-firebase/app": "14.7.0"

dangnguyen1004 commented 1 year ago

Got error on version 18.5.0 Gradle version

------------------------------------------------------------
Gradle 6.9.2
------------------------------------------------------------

Build time:   2021-12-21 20:18:38 UTC
Revision:     5d94aa68c0fdbe443838bb977080e3b9f273e889

Kotlin:       1.4.20
Groovy:       2.5.12
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          16.0.2 (Oracle Corporation 16.0.2+7-67)
OS:           Mac OS X 11.4 x86_64
mikehardy commented 1 year ago

In general we test with and compile successfully with current stable versions of the tool chains everywhere. For java that means java 11 now, Gradle and android Gradle plugin 7 and 8, with current versions here

I provide a reproducible demo that shows it working here https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh

There won't be updates unless someone provides a similar reproducible example on current versions - at which point I'll be very interested and I'll watch things up like I did today for the react-native 0.73 tool chains that are in release candidate phase and needed a fix up for everyone here before 0.73 is officially released #7412

Basically though, update your software and things will run smoothly I think

dangnguyen1004 commented 1 year ago

My project is running stable in rn verstion 0.63. Installed rn firebase v18.5.0, 18.3.1, 17.5.0. None of these versions work. Is there any way to solve this problem without upgrading Gradle or React Native?

mikehardy commented 1 year ago

Not that I'm aware of with react-native that old. I don't believe that will compile correctly with modern xcode either. Unfortunately mobile development implies updating tool chains to handle the constant stream of breaking changes issued by the underlying platforms.

trucuit commented 11 months ago

My project is running stable in rn verstion 0.63. Installed rn firebase v18.5.0, 18.3.1, 17.5.0. None of these versions work. Is there any way to solve this problem without upgrading Gradle or React Native?

I've same issue