[Unity] Google Play sdk conflicts

769 views
Skip to first unread message

Lucid

unread,
Dec 20, 2016, 12:13:29 PM12/20/16
to Firebase Google Group
Hi everybody,

I am already using Stan's Assets Android Native+Google Play for Unity SDK and i have a lot of conflicts between the Firebase Unity 1.1.0 SDK jar's and these.

Stan's Asset use Google Play Lib : v9.2.1
And Firebase : v10.0.1

I tried to remove manually the duplicated classes from jar but there are too much and i don't think this is the best solution because of the difference of versions.

How can i make them both work ?

Best regards,
Daniel

Tom Larkworthy

unread,
Dec 20, 2016, 1:15:01 PM12/20/16
to Firebase Google Group
The usual way to resolve these kinds of issues is to use something like the maven shade plugin https://maven.apache.org/plugins/maven-shade-plugin/ to rename all the dependencies in one jar to a new prefix that doesn't conflict.

--
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-talk+unsubscribe@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/96f528b5-00f3-410d-81dd-5687cad8925e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stewart Miles

unread,
Dec 20, 2016, 1:17:54 PM12/20/16
to fireba...@googlegroups.com
Google Play Services components update in lock step such that 9.2.1 is not compatible with 10.x, you need to upgrade all components.  You could try removing the dependencies on 9.2.1 from Stan's Assets plugin and switch everything over to 10.x, cross your fingers and hope there are no breaking API changes for the code currently being used by Stan's Assets plugin.

Cheers,
Stewart

Lucid

unread,
Dec 21, 2016, 10:27:37 AM12/21/16
to Firebase Google Group

hank you for your help.

I upgraded the google play libs using the AppDeps script from Firebase.
I added the libs used by Stan assets and removed the old versions jar and at least the build works.

But now when i call LogEvent i have direct crashes :



I want only FirebaseAnalytics I am supposed to import all the Firebase unitypackages to make it work ?






Le mardi 20 décembre 2016 19:17:54 UTC+1, Stewart Miles a écrit :
Google Play Services components update in lock step such that 9.2.1 is not compatible with 10.x, you need to upgrade all components.  You could try removing the dependencies on 9.2.1 from Stan's Assets plugin and switch everything over to 10.x, cross your fingers and hope there are no breaking API changes for the code currently being used by Stan's Assets plugin.

Cheers,
Stewart
On Tue, Dec 20, 2016 at 10:14 AM, 'Tom Larkworthy' via Firebase Google Group <fireba...@googlegroups.com> wrote:
The usual way to resolve these kinds of issues is to use something like the maven shade plugin https://maven.apache.org/plugins/maven-shade-plugin/ to rename all the dependencies in one jar to a new prefix that doesn't conflict.
On Tue, Dec 20, 2016 at 8:57 AM, Lucid <seng....@gmail.com> wrote:
Hi everybody,

I am already using Stan's Assets Android Native+Google Play for Unity SDK and i have a lot of conflicts between the Firebase Unity 1.1.0 SDK jar's and these.

Stan's Asset use Google Play Lib : v9.2.1
And Firebase : v10.0.1

I tried to remove manually the duplicated classes from jar but there are too much and i don't think this is the best solution because of the difference of versions.

How can i make them both work ?

Best regards,
Daniel

--
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/96f528b5-00f3-410d-81dd-5687cad8925e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

Lucid

unread,
Dec 21, 2016, 11:58:58 AM12/21/16
to Firebase Google Group
Problem solved i didn't knew i had to initialize Firebase Analytics with :

            FirebaseAnalytics.SetAnalyticsCollectionEnabled(true);

It works perfectly now :)

Stewart Miles

unread,
Dec 21, 2016, 12:01:40 PM12/21/16
to fireba...@googlegroups.com
Not sure that was the root cause.  The assert you hit suggests that not all required aars were included in the project.

In future if you run into this there are a few ways to solve it:
  • Make sure the Jar Resolution (AAR copying) completes (you could manually run the resolver from Assets --> Play Services Resolver --> Android Resolver)
  • Since you're trying to mix and match another plugin, I recommend setting up our Analytics sample project https://github.com/firebase/quickstart-unity/tree/master/analytics/testapp then looking under Assets/Plugins/Android at the set of aars and exploded aar folders (e.g firebase-common etc.) in there any copying them to your target project.
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-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages