react-native-firebase-analytics icon indicating copy to clipboard operation
react-native-firebase-analytics copied to clipboard

Multiple dex files define

Open SoldierCorp opened this issue 8 years ago • 2 comments

Hi,

I cannot get your plugin work because this error:

* What went wrong:
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/common/api/zze;

Do you know how to solve this?

Thanks!

SoldierCorp avatar Feb 11 '17 19:02 SoldierCorp

I had the same issue with the react-native-maps module. It was because I had different version of Google Mobile Services across my modules.

Here is how I fixed it, in my /android/app/build.gradle file:


    compile(project(':react-native-maps')){
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
    }
    compile 'com.google.android.gms:play-services-base:10.2.0'
    compile 'com.google.android.gms:play-services-maps:10.2.0'

Look into your modules which version of Google Mobile Services are installed and change one of them like above.

NicolasBonduel avatar Feb 28 '17 15:02 NicolasBonduel

@NicolasBonduel We have a similar situation with React Native Intercom, how can we find what code should we exclude there?

image

Thanks!

afilp avatar Jun 05 '17 10:06 afilp