- Home /
Help building with two conflicting plugins: GameAnalytics and Google Play Services
I've been trying to solve this for weeks now.
I have integrated Game Analytics (Git Repository here), and Google Play Services Unity plugin into my game. With either one of these integrated, they work fine. But when both are integrated at the same time, I get errors when trying to build.
This has been reported to Game Analytics' support, but there has been no word on a solution, so I'm calling out to anyone for help!
The error looks like this:
"Build failure: Failed to re-package resources. See the Console for details".
And then the console shows this:
CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\Nick\Documents\adt-bundle-windows-x86_64-20140702\sdk\build-tools\23.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/Nick/Documents/adt-bundle-windows-x86_64-20140702/sdk\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages com.google.android.gms:com.google.example.games.mainlibproj:com.google.android.gms.analytics:com.google.android.gms:android.support.v4 -S "C:\Users\Nick\Documents\GitHub\SocialNetwork\Social Network\Temp\StagingArea\android-libraries\google-play-services_lib\res" -S "C:\Users\Nick\Documents\GitHub\SocialNetwork\Social Network\Temp\StagingArea\android-libraries\play-services-analytics-7.5.0\res" -S "C:\Users\Nick\Documents\GitHub\SocialNetwork\Social Network\Temp\StagingArea\android-libraries\play-services-base-7.5.0\res" -S "C:\Users\Nick\Documents\GitHub\SocialNetwork\Social Network\Temp\StagingArea\android-libraries\support-v4-22.2.0\res"
stderr[
C:\Users\Nick\Documents\GitHub\SocialNetwork\Social Network\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_attrs.xml:13: error: Attribute "imageAspectRatioAdjust" has already been defined
C:\Users\Nick\Documents\GitHub\SocialNetwork\Social Network\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_attrs.xml:22: error: Attribute "imageAspectRatio" has already been defined
C:\Users\Nick\Documents\GitHub\SocialNetwork\Social Network\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_attrs.xml:27: error: Attribute "circleCrop" has already been defined
]
stdout[
Configurations:
(default)
Files:
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Including resources from package: C:\Users\Nick\Documents\adt-bundle-windows-x86_64-20140702\sdk\platforms\android-23\android.jar
applyFileOverlay for drawable
trying overlaySet Key=common_full_open_on_phone.png
trying overlaySet Key=common_ic_googleplayservices.png
trying overlaySet Key=common_signin_btn_icon_dark.xml
trying overlaySet Key=common_signin_btn_icon_disabled_dark.9.png
trying overlaySet Key=common_signin_btn_icon_disabled_focus_dark.9.png
trying overlaySet Key=common_signin_btn_icon_disabled_focus_light.9.png
trying overlaySet Key=common_signin_btn_icon_disabled_light.9.png
trying overlaySet Key=common_signin_btn_icon_focus_dark.9.png
trying overlaySet Key=common_signin_btn_icon_focus_light.9.png
trying overlaySet Key=common_signin_btn_icon_light.xml
trying overlaySet Key=common_signin_btn_icon_normal_dark.9.png
trying overlaySet Key=common_signin_btn_icon_normal_light.9.png
trying overlaySet Key=common_signin_btn_icon_pressed_dark.9.png
trying overlaySet Key=common_signin_btn_icon_pressed_light.9.png
trying overlaySet Key=common_signin_btn_text_dark.xml
trying overlaySet Key=common_signin_btn_text_disabled_dark.9.png
trying overlaySet Key=common_signin_btn_text_disabled_focus_dark.9.png
trying overlaySet Key=common_signin_btn_text_disabled_focus_light.9.png
trying overlaySet Key=common_signin_btn_text_disabled_light.9.png
trying overlaySet Key=common_signin_btn_text_focus_dark.9.png
trying overlaySet Key=common_signin_btn_text_focus_light.9.png
trying overlaySet Key=common_signin_btn_text_light.xml
trying overlaySet Key=common_signin_btn_text_normal_dark.9.png
trying overlaySet Key=common_signin_btn_text_normal_light.9.png
trying overlaySet Key=common_signin_btn_text_pressed_dark.9.png
trying overlaySet Key=common_signin_btn_text_pressed_light.9.png
trying overlaySet Key=ic_plusone_medium_off_client.png
trying overlaySet Key=ic_plusone_small_off_client.png
trying overlaySet Key=ic_plusone_standard_off_client.png
trying overlaySet Key=ic_plusone_tall_off_client.png
trying overlaySet Key=cast_ic_notification_0.png
trying overlaySet Key=cast_ic_notification_1.png
trying overlaySet Key=cast_ic_notification_2.png
trying overlaySet Key=cast_ic_notification_connecting.xml
trying overlaySet Key=cast_ic_notification_on.png
trying overlaySet Key=common_full_open_on_phone.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor tvdpi-v4
baseFile 2 has flavor hdpi-v4
baseFile 3 has flavor xhdpi-v4
baseFile 4 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor tvdpi-v4
overlayFile 2 has flavor hdpi-v4
overlayFile 3 has flavor xhdpi-v4
overlayFile 4 has flavor xxhdpi-v4
found a match (0) for overlay file common_full_open_on_phone.png, for flavor mdpi-v4
found a match (1) for overlay file common_full_open_on_phone.png, for flavor tvdpi-v4
found a match (2) for overlay file common_full_open_on_phone.png, for flavor hdpi-v4
found a match (3) for overlay file common_full_open_on_phone.png, for flavor xhdpi-v4
found a match (4) for overlay file common_full_open_on_phone.png, for flavor xxhdpi-v4
trying overlaySet Key=common_ic_googleplayservices.png
baseFile 0 has flavor hdpi-v4
overlayFile 0 has flavor hdpi-v4
found a match (0) for overlay file common_ic_googleplayservices.png, for flavor hdpi-v4
trying overlaySet Key=common_signin_btn_icon_dark.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_signin_btn_icon_dark.xml, for flavor
trying overlaySet Key=common_signin_btn_icon_disabled_dark.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_icon_disabled_dark.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_icon_disabled_dark.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_icon_disabled_dark.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_icon_disabled_dark.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_icon_disabled_focus_dark.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_icon_disabled_focus_dark.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_icon_disabled_focus_dark.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_icon_disabled_focus_dark.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_icon_disabled_focus_dark.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_icon_disabled_focus_light.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_icon_disabled_focus_light.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_icon_disabled_focus_light.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_icon_disabled_focus_light.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_icon_disabled_focus_light.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_icon_disabled_light.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_icon_disabled_light.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_icon_disabled_light.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_icon_disabled_light.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_icon_disabled_light.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_icon_focus_dark.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_icon_focus_dark.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_icon_focus_dark.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_icon_focus_dark.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_icon_focus_dark.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_icon_focus_light.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_icon_focus_light.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_icon_focus_light.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_icon_focus_light.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_icon_focus_light.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_icon_light.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_signin_btn_icon_light.xml, for flavor
trying overlaySet Key=common_signin_btn_icon_normal_dark.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_icon_normal_dark.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_icon_normal_dark.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_icon_normal_dark.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_icon_normal_dark.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_icon_normal_light.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_icon_normal_light.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_icon_normal_light.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_icon_normal_light.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_icon_normal_light.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_icon_pressed_dark.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_icon_pressed_dark.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_icon_pressed_dark.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_icon_pressed_dark.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_icon_pressed_dark.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_icon_pressed_light.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_icon_pressed_light.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_icon_pressed_light.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_icon_pressed_light.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_icon_pressed_light.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_text_dark.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_signin_btn_text_dark.xml, for flavor
trying overlaySet Key=common_signin_btn_text_disabled_dark.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_text_disabled_dark.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_text_disabled_dark.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_text_disabled_dark.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_text_disabled_dark.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_text_disabled_focus_dark.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_text_disabled_focus_dark.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_text_disabled_focus_dark.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_text_disabled_focus_dark.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_text_disabled_focus_dark.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_text_disabled_focus_light.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_text_disabled_focus_light.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_text_disabled_focus_light.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_text_disabled_focus_light.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_text_disabled_focus_light.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_text_disabled_light.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_text_disabled_light.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_text_disabled_light.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_signin_btn_text_disabled_light.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_signin_btn_text_disabled_light.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_signin_btn_text_focus_dark.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_signin_btn_text_focus_dark.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_signin_btn_text_focus_dark.9.png, for flavor hdpi-v4
found <message truncated>
Note that there are several similar posted problems on forums, but I have yet to find one whose solution fixed my problem.
If you are trying to recreate my issue, you can set up an empty scene and integrate the two pretty easily. You'll have to make sure you setup the Google Play Services for Android before trying to build. Thanks in advance for any help!
Answer by Myrtanim · Dec 04, 2015 at 10:55 AM
GameAnalytics already comes with a version of Google Play Service. See the *.aar
files under Assets/Plugins/Android
. There should be play-services-base-7.5.0.aar
and play-services-analytics-7.5.0.aar
. When you delete them it should work again.
Yeah (sorry, I should have updated when I solved the problem myself), I needed to delete the play services files that Game Analytics included. You're right. Thanks for responding.
Hey @$$anonymous$$yrtanim and @rockyourteeth , it's now 2019. Are these the same package we delete inside of Assets/Plugins/Android
? I cannot find them.
Answer by gurdotan · Jan 13, 2016 at 03:31 PM
If you're still having a hard time with GameAnalytics, you can consider SOOMLA as well. Here's an in-depth comparison between the two: http://blog.soom.la/2016/01/side-by-side-comparison-soomla-gameanalytics.html
Full disclosure, I'm one of the founders of SOOMLA. Since we acknowledge GameAnalytics as a great tool as well, we've enabled our developers to integrate with them too: http://www.gameanalytics.com/docs/soom-la.
Thanks! I got it all working. I'm actually using Soomla for my IAP, and GameAnalytics for analytics. I realize that Soomla is doing analytics now. I may look into that for my next game. But I have to say, Soomla and GameAnalytics are both top-notch tools!
Btw, the game is now on Google Play, and in submission for the App Store now... so yay!
Your answer
Follow this Question
Related Questions
Error building app for google play (build app bundle) 1 Answer
Build gives BSoD on launch 0 Answers
Build Error 1 Answer
Distribute terrain in zones 3 Answers
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors 0 Answers