Build failure after adding google-play-services-lib Unity3D

2,167 views
Skip to first unread message

Diggie9

unread,
May 23, 2014, 7:25:17 AM5/23/14
to google-adm...@googlegroups.com
Hello, i'm trying to add the *&#$#* google ads for 5 days straight at least 8 hours a day and its driving me realy realy realy crazy at this moment. I hope someone can help me.

I have integrated the facebook SDK in Unity, (wich is working perfect). After i try and add the google-play-services-lib in the Plugins/Android folder i can play my game within Unity but when i try to export it to .apk to test it on my device the trouble begins. While building the .APK it hangs while it is trying to gather resources. (whenever i remove the google-play-services_lib folder the problem is solved and the app runs again. 
the libproject folder is empty, the only reason i put it there is for testing purposes (copying the google-playservices folder into that one so it runs).
The log is as follows:


Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\Diggie-9\Desktop\sdkv2\adt-bundle-windows-x86-20140321\sdk\build-tools\android-4.4.2\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/Diggie-9/Desktop/sdkv2/adt-bundle-windows-x86-20140321/sdk/platforms/android-19\android.jar" -F bin/resources.ap_ --extra-packages com.facebook.android:com.google.android.gms -S "C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\facebook\res" -S "C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res"

stderr[
res\values\ads_attrs.xml:10: error: Attribute "adSize" has already been defined
res\values\ads_attrs.xml:17: error: Attribute "adSizes" has already been defined
res\values\ads_attrs.xml:20: error: Attribute "adUnitId" has already been defined
res\values\maps_attrs.xml:5: error: Attribute "mapType" has already been defined
res\values\maps_attrs.xml:12: error: Attribute "cameraBearing" has already been defined
res\values\maps_attrs.xml:13: error: Attribute "cameraTargetLat" has already been defined
res\values\maps_attrs.xml:14: error: Attribute "cameraTargetLng" has already been defined
res\values\maps_attrs.xml:15: error: Attribute "cameraTilt" has already been defined
res\values\maps_attrs.xml:16: error: Attribute "cameraZoom" has already been defined
res\values\maps_attrs.xml:17: error: Attribute "uiCompass" has already been defined
res\values\maps_attrs.xml:18: error: Attribute "uiRotateGestures" has already been defined
res\values\maps_attrs.xml:19: error: Attribute "uiScrollGestures" has already been defined
res\values\maps_attrs.xml:20: error: Attribute "uiTiltGestures" has already been defined
res\values\maps_attrs.xml:21: error: Attribute "uiZoomControls" has already been defined
res\values\maps_attrs.xml:22: error: Attribute "uiZoomGestures" has already been defined
res\values\maps_attrs.xml:23: error: Attribute "useViewLifecycle" has already been defined
res\values\maps_attrs.xml:24: error: Attribute "zOrderOnTop" has already been defined
]
stdout[
Configurations:
 (default)
 hdpi
 mdpi
 xhdpi
 xxhdpi
 af
 am
 ar
 be
 bg
 ca
 cs
 da
 de
 el
 en-GB
 en-IN
 es
 es-US
 et-EE
 fa
 fi
 fr
 fr-CA
 hi
 hr
 hu
 hy-AM
 in
 it
 iw
 ja
 ka-GE
 km-KH
 ko
 lo-LA
 lt
 lv
 mn-MN
 ms-MY
 nb
 nl
 pl
 pt
 pt-BR
 pt-PT
 ro
 ru
 sk
 sl
 sr
 sv
 sw
 th
 tl
 tr
 uk
 vi
 zh-CN
 zh-HK
 zh-TW
 zu

Files:
  color\common_signin_btn_text_dark.xml
    Src: () C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\color\common_signin_btn_text_dark.xml
  color\common_signin_btn_text_light.xml
    Src: () C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\color\common_signin_btn_text_light.xml
  drawable\common_signin_btn_icon_dark.xml
    Src: () C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable\common_signin_btn_icon_dark.xml
  drawable\common_signin_btn_icon_disabled_dark.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_dark.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_dark.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_dark.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_disabled_dark.9.png
  drawable\common_signin_btn_icon_disabled_focus_dark.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_focus_dark.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_focus_dark.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_focus_dark.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_disabled_focus_dark.9.png
  drawable\common_signin_btn_icon_disabled_focus_light.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_focus_light.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_focus_light.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_focus_light.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_disabled_focus_light.9.png
  drawable\common_signin_btn_icon_disabled_light.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_light.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_light.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_light.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_disabled_light.9.png
  drawable\common_signin_btn_icon_focus_dark.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_focus_dark.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_focus_dark.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_focus_dark.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_focus_dark.9.png
  drawable\common_signin_btn_icon_focus_light.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_focus_light.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_focus_light.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_focus_light.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_focus_light.9.png
  drawable\common_signin_btn_icon_light.xml
    Src: () C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable\common_signin_btn_icon_light.xml
  drawable\common_signin_btn_icon_normal_dark.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_normal_dark.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_normal_dark.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_normal_dark.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_normal_dark.9.png
  drawable\common_signin_btn_icon_normal_light.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_normal_light.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_normal_light.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_normal_light.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_normal_light.9.png
  drawable\common_signin_btn_icon_pressed_dark.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_pressed_dark.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_pressed_dark.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_pressed_dark.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_pressed_dark.9.png
  drawable\common_signin_btn_icon_pressed_light.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_pressed_light.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_pressed_light.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_pressed_light.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_icon_pressed_light.9.png
  drawable\common_signin_btn_text_dark.xml
    Src: () C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable\common_signin_btn_text_dark.xml
  drawable\common_signin_btn_text_disabled_dark.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_dark.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_dark.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_disabled_dark.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_text_disabled_dark.9.png
  drawable\common_signin_btn_text_disabled_focus_dark.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_focus_dark.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_focus_dark.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_disabled_focus_dark.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_text_disabled_focus_dark.9.png
  drawable\common_signin_btn_text_disabled_focus_light.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_focus_light.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_focus_light.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_disabled_focus_light.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_text_disabled_focus_light.9.png
  drawable\common_signin_btn_text_disabled_light.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_light.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_light.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_disabled_light.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_text_disabled_light.9.png
  drawable\common_signin_btn_text_focus_dark.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_focus_dark.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_focus_dark.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_focus_dark.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_text_focus_dark.9.png
  drawable\common_signin_btn_text_focus_light.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_focus_light.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_focus_light.9.png
    Src: (xhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_focus_light.9.png
    Src: (xxhdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_signin_btn_text_focus_light.9.png
  drawable\common_signin_btn_text_light.xml
    Src: () C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable\common_signin_btn_text_light.xml
  drawable\common_signin_btn_text_normal_dark.9.png
    Src: (hdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_normal_dark.9.png
    Src: (mdpi) C:\Users\Diggie-9\Desktop\Spider Game\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_normal_dark.9
2014-05-23 13_21_21-Unity - SpiderGameMenu.unity - Spider Game- Android.png

Eric Leichtenschlag

unread,
May 23, 2014, 8:34:50 PM5/23/14
to google-adm...@googlegroups.com
The google-play-services_lib/ project already has a res/ directory with ads_attrs.xml and maps_attrs.xml in there. What is inside that other res/ directory? The error suggests you have two copies of these attributes somewhere.

Thanks,
Eric
Message has been deleted

Diggie9

unread,
May 25, 2014, 2:48:02 PM5/25/14
to google-adm...@googlegroups.com
btw, see the attachment i've uploaded for content of the other res folder

On Sunday, May 25, 2014 8:45:50 PM UTC+2, Diggie9 wrote:
Hi Eric,

The Facebook unity plugin installs its own Res dir. I realy dont know what to do, i cannot delete the Facebook res folder (facebook will not work anymore). I cannot merge the res folder of facebook into the google play res folder, or vica versa. 

And it sure is the problem because when i delete either the google play or the facebook res folder, the application will build into APK. 

Diggie9

unread,
May 25, 2014, 3:06:53 PM5/25/14
to google-adm...@googlegroups.com
YESSS :D

Eric thanks, 

It was indeed the other res folder. No clue how it got there, after deleting it it still wouldnt work, then i deleted Facebook plugin folder, deleted the Google play services folder. And also the other res folder.

Reimported the Facebook unity plugin.
Reimported the Google play services

Build it, and it works. I'm SO happy this was cousing brain damage :D:D Thank again!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages