Closed dsvetov-bigviking closed 8 years ago
Hi @dsvetov-bigviking,
The issue you describe is caused by a libraries duplication: one copy of android support library comes with FacebookSDK, another with UTNotifications. In order to solve an issue, just remove an extra copy: Assets/Plugins/Android/UTNotifications/libs/android-support-v4.jar.
Please let me know if it helped or if you need any further assistance.
Best regards, Yuriy, Universal Tools team.
Hey i did think it was the same issue but i did keep only one copy of the adnroid-support (unity actually complains if you have 2 copies) it worked fine with FacebookSDK it broke after having FuseSDK added. (https://github.com/fusepowered/FuseSDKUnity) so there got to be some other library that is inside the jar that is conflicting.
Hi @dsvetov-bigviking ,
The problem is, indeed, a conflict with FuseSDK (I was able to reproduce it). FuseSDK comes with play-services-base-6.5.87.aar which is duplicated by a part of google-play-services_lib supplied with UTNotifications. Unfortunately, just deleting a file play-services-base-6.5.87.aar will not solve a problem completely: FuseSDK is such a huge monster, so together with UTNotifications and FacebookSDK it produces more than 65536 classes, which is not allowed by Android. So, instead of providing the whole google-play-services_lib, you'll have to delete it and replace with a specific .aar sublibraries: play-services-base-{VERSION}.aar, play-services-basement-{VERSION}.aar, play-services-gcm-{VERSION}.aar, play-services-measurement-{VERSION}
It's important that all of these libraries will have the same version. So I'd recommend you deleting an outdated FuseSDK's library play-services-base-6.5.87.aar, and adding all the required by UTNotifications libs of version 8.4.0, which can be downloaded here.
Best regards, Yuriy, Universal Tools team.
Thank you so much for the quick responses. I will try to combine all those SDKs using your suggestions
Dima
When importing UTNotifications after other SDKs plugin have been imported and tested for android, the build for android gives the following error.