Closed lzwebc closed 5 years ago
Hello 👋, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
I'm having the exact same issue. Any updates?
Im also facing the same issue, can somebody please help
com.android.build.api.transform.TransformException: Error while generating the main dex list. Any solutions on this?
- What went wrong: Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
com.android.build.api.transform.TransformException: Error while generating the main dex list. Any solutions on this?
I got the issue fixed by running react-native unlink react-native-firebase to unlink firebase. I guess there's an issue when linking it for some reason.
Anyone plz help us :confused:
react-native unlink react-native-firebase
this works! thank you
Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?
This issue will be closed in 15 days if no further activity occurs. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.
I am facing the same issue. This seems to be the cause: > Task :app:transformClassesWithMultidexlistForDebug FAILED D8: Program type already present: io.invertase.firebase.database.RNFirebaseDatabase$5
Please tell me how to solve this issue. :(
I don't know, I can't reproduce it - see automated react-native-firebase example build here to make sure it works in your environment: https://github.com/mikehardy/rnfbdemo - you can fork that repo and add the database dependency if you like, and if you can demonstrate the failure we can try to fix it. But this is a stale issue so you might like to open a new one with full information filled in the template
Okay, I was working on react-native-firebase-starter today to upgrade it so it matches the current v5.5.4 release of react-native-firebase and I could finally reproduce this
It's a gradle cache issue, and if it happened for others the way it happened for me, you maybe tried to yarn android
or somehow run the android gradle build before you did the yarn rename
. Gradle cached some of the outputs and you end up with some pretty bizarre object collisions as gradle tries to merge the old build and the new build together to package it.
For me, I did rm -rf android/.gradle
to clear out the project cache and that worked
Issue
I'm trying to move my app to
react-native-firebase-starter
so I initialized app withreact-native-firebase-starter
and installed packages withyarn add
. When I try to runreact-native run-android
I get this error:I've tried everything I could find and nothing helps.
Project Files
iOS
ios/Podfile
:AppDelegate.m
:Android
android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
ADD_SOMETHING_HERE
e.g. iOS 10 or Android API 28N/A
10
N/A
react-native run-android
e.g. Xcode 10, Android Studio 3.2React Native
version:react-native-cli: 2.0.1, react-native: 0.58.0-rc.2
React Native Firebase
library version:5.2.0
Firebase
module(s) you're using that has the issue:TypeScript
?N/A
ExpoKit
?ExpoKit
N/A
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter