Closed dan-fein closed 4 years ago
I don't believe this has anything to do with react-native-firebase
The error has to do with google signin Maybe it is auto-linking and you are including it directly so it shows up twice?
* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list:
Error while merging dex archives:
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: co.apptailor.googlesignin.BuildConfig
I must have searched 5 files 90 times each in search of duplicates, it was the same package with two names in package.json. Mike Hardy you're the legend! Thank you!
glad that worked!
Hej, in my case it was due to having @react-native-firebase/app
along with deprecated react-native-google-analytics-bridge
in my package.json
. Hope this helps.
Thanks Mike this did the job for me too! In my case I had a deprecated version of react-native-community/voice
called react-native-voice
.
Always glad to hear success - the RN59->RN60+ upgrade with switch to autolinking really is/was a bear. Fantastic once done though. Good luck everyone.
I am running Firebase v6. I upgraded to React Native v0.61.2 and I can't build the Android dev environment. The current error that I'm receiving appears to be related to dex but I have it enabled and believe I've done what the Q&A across the web suggests. Hoping someone can spot the issue below.
I've tried a lot of combinations of things, and the below is just the latest.
The error is:
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:android/settings.gradle
:I tried the below both commented out, not commented out, and a lot of combinations in between.
android/app/build.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
Click To Expand
**`react-native info` output:** ``` System: OS: macOS 10.15 CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz Memory: 42.46 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.16.3 - /usr/local/bin/node Yarn: 1.19.0 - ~/.yarn/bin/yarn npm: 6.9.0 - /usr/local/bin/npm SDKs: iOS SDK: Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0 IDEs: Android Studio: 3.5 AI-191.8026.42.35.5900203 Xcode: 11.0/11A420a - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.2 => 0.61.2 npmGlobalPackages: react-native-cli: 2.0.1 ``` - **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:** - `6.0.2` - **`Firebase` module(s) you're using that has the issue:** - All, full project - **Are you using `TypeScript`?** - `N`
Think
react-native-firebase
is great? Please consider supporting all of the project maintainers and contributors by donating via our Open Collective where all contributors can submit expenses. [Learn More]React Native Firebase
andInvertase
on Twitter for updates on the library.