- Home /
Google Play Game Services Plugin "Failed to re-package resources"
I am trying to build a project that use the GPGS plugin, but when I built the project it gave me this error. If you need any clarification I would be happy to help! Heres the error:
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\GriffinBoys\AppData\Local\Android\android-sdk\build-tools\19.0.3\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/GriffinBoys/AppData/Local/Android/android-sdk/platforms/android-19\android.jar" -F bin/resources.ap_ --extra-packages com.google.example.games.basegameutils:com.google.android.gms:com.google.example.games.mainlibproj -S "C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\BaseGameUtils\res" -S "C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res"
stderr[
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
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\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_dark.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_dark.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_dark.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_focus_dark.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_focus_dark.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_focus_dark.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_focus_light.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_focus_light.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_focus_light.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_light.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_light.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_light.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_focus_dark.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_focus_dark.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_focus_dark.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_focus_light.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_focus_light.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_focus_light.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_normal_dark.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_normal_dark.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_normal_dark.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_normal_light.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_normal_light.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_normal_light.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_pressed_dark.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_pressed_dark.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_pressed_dark.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_pressed_light.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_pressed_light.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_pressed_light.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_dark.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_dark.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_disabled_dark.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_focus_dark.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_focus_dark.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_disabled_focus_dark.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_focus_light.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_focus_light.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_disabled_focus_light.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_light.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_light.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_disabled_light.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_focus_dark.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_focus_dark.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_focus_dark.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_focus_light.9.png
Src: (mdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_focus_light.9.png
Src: (xhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_focus_light.9.png
Src: (xxhdpi) C:\Users\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\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\GriffinBoys\Documents\LiveTraining\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_normal_dark.9.png
Src: (mdpi) C:\Users
I've got the same problem here. No Google results have helped yet
Same problem here, google search brought me here to no avail :P Ill be sure to post an answer if i find it.
Answer by shakirovt · Jul 26, 2014 at 12:15 AM
could anybody find an answer? if yes, then post it here, please.
This is not an answer please dont post comments as answers.
Answer by Naeja · Dec 24, 2014 at 06:07 AM
Hey since this is one of the first google results when you search this problem I'll post how I got around this one for any would be stumblers.
Three things: 1)Make sure you've got an AP ID and run the setup properly as per the plugins github instructions 2)Make sure your Path variable is set up to the correct location of the JDK on your computer 3)Copy your version.xml file from sdk/extras/google_play_services/res/values to Plugins/Android/res/values in your Unity projects Assets fodler 4)If that still doesn't work make sure your android build tools are up to date
This worked for me. Credit where credit is due http://stackoverflow.com/questions/20728725/cant-use-google-play-services-on-unity-java-plugin