Using Firebase and Admob-free Together


#1

I tried using the native firebase plugin and the native admob-free plugin together.
But it always throws an error.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':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/zzev;

I’ve already tried adding them in different orders.
Am I doing something wrong?
Any help is appreciated.


#2

I had the same problem. It’s related to different google play services used by the plugins. To fix it I changed inside cordova admob sdk plugin.xml

    
    <platform name="android">
        <framework src="com.google.android.gms:play-services-base:+" />
        <framework src="com.google.android.gms:play-services-ads:+" />
    </platform>

Firebase is using the newest version via +, admob is using version 11.0.4 per default. The documented way inside the plugins readme to change play service version didn’t work for me.


#3

I am having a hard time trying to show the rewarded video ad using ionic native admobFree plugin. Banner & interstitial ads are being being shown but not the rewardedVideo Ad. Any help regarding this issue will be appreciated.