Hi UnityAnswers,
I currently have the Google Play Services plugin installed and working with my project. Tonight I attempted to add the AdMob plugin and immediately began running into this error whenever I ran a build. Even after removing the plugin and reverting SVN to the build prior to even installing it, the error remains.
I’ve searched Google for the last three hours (seriously, purple links everywhere) and have tried many things to no avail. It’s driving me absolutely mad.
Here’s my setup:
Unity 5.2.0f3
Android SDK Tools 24.4
Android SDK Platform-Tools 23.0.1
Android SDK Build-Tools 22.0.1 & 21.1.2
I’ve read that it has something to do with the aapt.exe file being moved to the Build-Tools and thus has to be moved (shortcutted?) to the the Platform-Tools. I tried this for both of the versions I have installed (listed above).
I also tried removing the multiple AndroidManifest.xml’s that exist in the android folder, admob, google play etc. I also read something about the version.xml being messed up, though I was unsure how to test that.
Anyway, if anyone has any insight into this, I’d be really grateful!
Here is the error:
CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Program Files (x86)\Android\android-sdk\build-tools\22.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Program Files (x86)/Android/android-sdk\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages com.google.android.gms:com.google.unity:com.google.example.games.mainlibproj -S "C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res"
stderr[
AndroidManifest.xml:17: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.IAPTheme').
]
stdout[
Configurations:
(default)
mdpi-v4
tvdpi-v4
hdpi-v4
xhdpi-v4
xxhdpi-v4
ca
da
fa
ja
nb
de
af
bg
th
fi
hi
vi
sk
uk
el
nl
pl
sl
tl
am
in
ko
ro
ar
fr
hr
sr
tr
cs
es
it
lt
pt
hu
ru
zu
lv
sv
iw
sw
fr-CA
lo-LA
en-GB
bn-BD
et-EE
ka-GE
ky-KG
km-KH
zh-HK
si-LK
mk-MK
ur-PK
sq-AL
hy-AM
my-MM
zh-CN
pa-IN
ta-IN
te-IN
ml-IN
en-IN
kn-IN
mr-IN
gu-IN
mn-MN
ne-NP
pt-BR
gl-ES
eu-ES
is-IS
es-US
pt-PT
en-AU
zh-TW
ms-MY
az-AZ
kk-KZ
uz-UZ
Files:
color\common_signin_btn_text_dark.xml
Src: () C:\Users\San\Desktop\Hexapop runk\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\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\color\common_signin_btn_text_light.xml
color\wallet_primary_text_holo_light.xml
Src: () C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\color\wallet_primary_text_holo_light.xml
color\wallet_secondary_text_holo_dark.xml
Src: () C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\color\wallet_secondary_text_holo_dark.xml
drawable\cast_ic_notification_0.png
Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\cast_ic_notification_0.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\cast_ic_notification_0.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\cast_ic_notification_0.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\cast_ic_notification_0.png
drawable\cast_ic_notification_1.png
Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\cast_ic_notification_1.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\cast_ic_notification_1.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\cast_ic_notification_1.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\cast_ic_notification_1.png
drawable\cast_ic_notification_2.png
Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\cast_ic_notification_2.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\cast_ic_notification_2.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\cast_ic_notification_2.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\cast_ic_notification_2.png
drawable\cast_ic_notification_connecting.xml
Src: () C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable\cast_ic_notification_connecting.xml
drawable\cast_ic_notification_on.png
Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\cast_ic_notification_on.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\cast_ic_notification_on.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\cast_ic_notification_on.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\cast_ic_notification_on.png
drawable\common_full_open_on_phone.png
Src: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_full_open_on_phone.png
Src: (tvdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-tvdpi\common_full_open_on_phone.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_full_open_on_phone.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_full_open_on_phone.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xxhdpi\common_full_open_on_phone.png
drawable\common_ic_googleplayservices.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_ic_googleplayservices.png
drawable\common_signin_btn_icon_dark.xml
Src: () C:\Users\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_dark.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_dark.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_dark.9.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_focus_dark.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_focus_dark.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_focus_dark.9.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_focus_light.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_focus_light.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_focus_light.9.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_disabled_light.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_disabled_light.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_disabled_light.9.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_focus_dark.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_focus_dark.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_focus_dark.9.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_focus_light.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_focus_light.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_focus_light.9.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\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\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_normal_dark.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_normal_dark.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_normal_dark.9.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_normal_light.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_normal_light.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_normal_light.9.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_pressed_dark.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_pressed_dark.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_pressed_dark.9.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_icon_pressed_light.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_icon_pressed_light.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_icon_pressed_light.9.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\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\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_dark.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_dark.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_disabled_dark.9.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_focus_dark.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_focus_dark.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_btn_text_disabled_focus_dark.9.png
Src: (xxhdpi-v4) C:\Users\San\Desktop\Hexapop runk\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: (mdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-mdpi\common_signin_btn_text_disabled_focus_light.9.png
Src: (hdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-hdpi\common_signin_btn_text_disabled_focus_light.9.png
Src: (xhdpi-v4) C:\Users\San\Desktop\Hexapop runk\Temp\StagingArea\android-libraries\google-play-services_lib\res\drawable-xhdpi\common_signin_b<message truncated>