# Using Firebase and Admob-free Together

**URL:** <https://forum.ionicframework.com/t/using-firebase-and-admob-free-together/117650>\
**Category:** Ionic Native\
**Created:** [January 9, 2018, 6:20am UTC](https://forum.ionicframework.com/t/using-firebase-and-admob-free-together/117650 "2018-01-09T06:20:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjoriginal](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@pjoriginal](https://forum.ionicframework.com/u/pjoriginal)\
**Post date:** [January 9, 2018, 6:20am UTC](https://forum.ionicframework.com/t/using-firebase-and-admob-free-together/117650/1 "2018-01-09T06:20:12Z")

</div>

I tried using the native [firebase plugin](https://ionicframework.com/docs/native/firebase/) and the native [admob-free plugin](https://ionicframework.com/docs/native/admob-free/) together.  
But it always throws an error.

```auto
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.

---

<div class="post-metadata">

**Author:** ![ElJey90](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/eljey90/32/82134_2.png) [@ElJey90](https://forum.ionicframework.com/u/ElJey90)\
**Post date:** [February 1, 2018, 11:21am UTC](https://forum.ionicframework.com/t/using-firebase-and-admob-free-together/117650/2 "2018-02-01T11:21:38Z")

</div>

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

```auto
    
    <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.

---

<div class="post-metadata">

**Author:** ![junaidahmed](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@junaidahmed](https://forum.ionicframework.com/u/junaidahmed)\
**Post date:** [May 9, 2018, 8:34am UTC](https://forum.ionicframework.com/t/using-firebase-and-admob-free-together/117650/3 "2018-05-09T08:34:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vigamage](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vigamage](https://forum.ionicframework.com/u/vigamage)\
**Post date:** [September 16, 2020, 3:16am UTC](https://forum.ionicframework.com/t/using-firebase-and-admob-free-together/117650/4 "2020-09-16T03:16:39Z")

</div>

You saved me. I was getting` type com.google.android.gms.common.internal.zzf is referenced as an interface site .......... zzcar .. etc` issue in Android studio.

Your answer was the one which fixed the issue. Thank you.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 8:54pm UTC](https://forum.ionicframework.com/t/using-firebase-and-admob-free-together/117650/5 "2021-07-19T20:54:10Z")

</div>

Closed on July 19, 2021, 8:54pm UTC


