Firebase Analytic and Google Admob SDK Version Conflict in Unity

1,222 views
Skip to first unread message

wave1...@gmail.com

unread,
Jun 22, 2018, 11:18:28 AM6/22/18
to Firebase Google Group
Hi There,
I am using firebase analytics along with Admob SDK in my unity game. I am importing both via official firebase and admob unity packages. Issue is that both has different version which causing version conflict

Firebase: using 16.0.0 and Admob Using 12.0.1 version

AnalyticsDependencies.xml
com.google.firebase:firebase-analytics:16.0.0

GoogleMobileAdsDependencies.xml
com.google.android.gms:play-services-ads:12.0.1

Also sub dependency like
com.google.android.gms.play-services-nearby-license dont have 15.0.1 version. its only has 12.0.1 version.

I attached my gradle file with this message. Kindly guide me how to solve this ?

Note: if I changed everything to downward 12.0.1 then it working fine. But I want use latest version need solution for that.

Regards
Raj
gradle.txt

Stewart Miles

unread,
Jun 22, 2018, 11:37:29 AM6/22/18
to Firebase Google Group
We recently released a fix to the Android Resolver (see https://github.com/googlesamples/unity-jar-resolver) which should fix this.  You'll need to run "Force Resolve" after importing the plugin.  The Unity 5.1.0 release (should be available later today) will include the updated Android Resolver.

Cheers,
Stewart

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/aad69646-d52d-4907-9965-a19311e70a09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

wave1...@gmail.com

unread,
Jun 23, 2018, 11:35:46 AM6/23/18
to Firebase Google Group
Dear Stewart,
Thanks for posting solution. I updated firebase via unity package. I still have one question. In Admob Package (https://github.com/googleads/googleads-mobile-unity/releases/tag/v3.13.1). Still they pointing to 12.0.1 version in GoogleMobileAdsDependencies.xml for com.google.android.gms:play-services-ads

Do I need to update it to 15.0.1  or will it resolve if i use force resolve ?
Does it cause version conflict ?

Stewart Miles

unread,
Jun 25, 2018, 3:34:36 PM6/25/18
to Firebase Google Group
If you use "Force Resolve" the most recent compatible version of each Android component should automatically be selected for you.  Any changes that are applied are reported as a warning in the Unity console.

Cheers,
Stewart

Reply all
Reply to author
Forward
0 new messages