-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃悰] [ANDROID] Duplicate class com.google.firebase.Timestamp #7781
Comments
facing same issue.. |
facing same issue.. |
just check your project level build.gradle file and remove extra thing which on is not used... my android/build.gradle file souce code..........****************** buildscript {
} and android/app/build.gradle file like this......*************** apply plugin: "com.android.application" import com.android.build.OutputFile /**
/**
/**
/**
/**
android {
} dependencies {
} apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) |
|
There is no reason to have direct firebase dependencies in your app level build.gradle, and certainly not with outdated versions. Auto linking will bring those dependencies in for you from the react-native-firebase modules. If you must depend on them directly for some project-specific reason (like you have custom native code on Android that uses firebase native apis directly...), remove the bom one, just depend on the specific modules you need and do not specify a version |
|
react-native-firebase expects to define and control the versions of your firebase-android-sdk dependencies If you add direct dependencies entries in your gradle files for firebase, then you must expect to take on the work of making sure they are the correct versions and kept correct over time relative to the firebase-android-sdk dependencies If you do not do that, then you'll attempt to build with multiple versions of the same firebase-android-sdk dependencies and of course that will lead to build problems That is not something we can help with - we expect you to use autolinking as is built in to react-native and to let react-native-firebase handle all the firebase-android-sdk dependencies |
Issue
When trying to compile the application on Android, I am receiving the following error:
The problem appears to be a duplication of classes between versions of firebase-common and firebase-firestore.
Project Files
`
`
`
I tried this, but it didn't work for me
https://stackoverflow.com/questions/78428458/how-to-fix-duplicate-class-com-google-firebase-timestamp/78438376#78438376
Click To Expand
package.json
:The text was updated successfully, but these errors were encountered: