Possible conflict with react-native-firebase
See original GitHub issueHi, thanks for a great module 😃
I have react-native-firebase working, and when I add react-native-device-info, I get the below error when running ‘gradlew.bat installDebug’ - any advice on how to get it working?
Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzbaz;
Misc info:
compileSdkVersion 23
buildToolsVersion "23.0.2"
minSdkVersion 16
targetSdkVersion 23
android/build.gradle dependencies:
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.0.0'
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:15 (1 by maintainers)
Top Results From Across the Web
Crash on Android, possible conflict with react-native-firebase ...
The only conclusion I have is that it is not related to firebase problem, it is related to xcode and react native problem,...
Read more >react-native-firebase pod version conflict for Firebase/CoreOnly
The problem is that @react-native-firebase/config appears unrelated to the ... hence the different latest version and pod conflicts.
Read more >Migrating to v6 - React Native Firebase
React Native Firebase version 6 has been re-created from the ground up, with a heavy focus on testing, documentation & feature compatibility with...
Read more >Handling dependencies conflict and locking in React Native
We can see that both react-native-firebase-analytics and react-native-onesignal depends on com.google.android.gms:play-services-basement but ...
Read more >Firebase Android SDK Release Notes - Google
Fixed an issue preventing native crashes from being reported for Android API 29+. ... The App Distribution Android SDK is now available in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Based on @leethree 's comment, I worked around this with:
The problem is caused by mixing Google Play Services dependencies.
From
react-native-device-info
’s gradle file (as a dependency, using+
is arguably the best approach):From
react-native-firebase
’s gradle file (because they target a specific compatible version):I have trouble with start an app on the android device. Build is success.
adb logcat:
IOS app is ok