issue with firebase and Ejected android aapp

#1

Hi,
I have built an app, it is working fine on Iphone but on Android I have a strange error.
I had to eject the app because te native module are more reliable for Firefbase (less disconnection).
Below the error I am getting:

Java exception in 'NativeModules'

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/firestore/FieldValue;
io.invertase.firebase.firestore.RNFirebaseFirestore.getConstants
    RNFirebaseFirestore.java:759
com.facebook.react.bridge.JavaModuleWrapper.getConstants
    JavaModuleWrapper.java:138
android.os.Handler.handleCallback
    Handler.java:790
android.os.Handler.dispatchMessage
    Handler.java:99
com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage
    MessageQueueThreadHandler.java:29
moduleAndStatics
    C:\Users\snoof\Documents\project\react-native\node_modules\react-native-firebase\dist\utils\apps.js:190:42
Firebase
    C:\Users\snoof\Documents\project\react-native\node_modules\react-native-firebase\dist\modules\core\firebase.js:39:43
<unknown>
    C:\Users\snoof\Documents\project\react-native\node_modules\react-native-firebase\dist\modules\core\firebase.js:97:20
loadModuleImplementation
    C:\Users\snoof\Documents\project\react-native\node_modules\metro\src\lib\polyfills\require.js:292:12
<unknown>
    C:\Users\snoof\Documents\project\react-native\node_modules\react-native-firebase\dist\index.js:1
loadModuleImplementation
    C:\Users\snoof\Documents\project\react-native\node_modules\metro\src\lib\polyfills\require.js:292:12
<unknown>
    C:\Users\snoof\Documents\project\react-native\src\firebase.ts:1
loadModuleImplementation
    C:\Users\snoof\Documents\project\react-native\node_modules\metro\src\lib\polyfills\require.js:292:12
<unknown>
    C:\Users\snoof\Documents\project\react-native\src\Commons\rx+firebase\withIsSignedIn.ts:1
loadModuleImplementation
    C:\Users\snoof\Documents\project\react-native\node_modules\metro\src\lib\polyfills\require.js:292:12
<unknown>
    C:\Users\snoof\Documents\project\react-native\src\RootRouter.tsx:2
loadModuleImplementation
    C:\Users\snoof\Documents\project\react-native\node_modules\metro\src\lib\polyfills\require.js:292:12
<unknown>
    C:\Users\snoof\Documents\project\react-native\src\App.tsx:12
loadModuleImplementation
    C:\Users\snoof\Documents\project\react-native\node_modules\metro\src\lib\polyfills\require.js:292:12
<unknown>
    C:\Users\snoof\Documents\project\react-native\App.js:2
loadModuleImplementation
    C:\Users\snoof\Documents\project\react-native\node_modules\metro\src\lib\polyfills\require.js:292:12
guardedLoadModule
    C:\Users\snoof\Documents\project\react-native\node_modules\metro\src\lib\polyfills\require.js:179:45
global code
    

Anyone knows how to fix that?

closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.