- Home /
Aftering adding admob plugin i get error when building : Failed to repackage resources
So i have google play services running successfully on my app and now i wanted to add some ads to my game. So i downloaded the admob plugin followed the steps from the video below
http://www.youtube.com/watch?v=kBRb9ba71qI.
however when i proceed to build i received the following error
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details. C:\ADT BUNDLE\adt-bundle-windows-x86_64-20140702\sdk\build-tools\android-4.4W\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/ADT BUNDLE/adt-bundle-windows-x86_64-20140702/sdk/platforms/android-20\android.jar" -F bin/resources.ap_ --extra-packages com.google.example.games.basegameutils:com.google.android.gms:com.SightHillsInc.KillerBeeAttack -S
stderr[ C:\Users\kyly\Documents\test\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\ads_attrs.xml:10: error: Attribute "adSize" has already been defined C:\Users\kyly\Documents\test\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\ads_attrs.xml:17: error: Attribute "adSizes" has already been defined C:\Users\kyly\Documents\test\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\ads_attrs.xml:20: error: Attribute "adUnitId" has already been defined C:\Users\kyly\Documents\test\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_colors.xml:4: error: Resource entry common_signin_btn_dark_text_default is already defined.
Any help would be appreciated, thank you, just needed to be pointed in the right direction.
Answer by kyly1992 · Aug 27, 2014 at 12:59 PM
So i solved this problem, anyone who comes across the same problem this is what solved it for me. i delete the admob plugin and the google play services plugin from my project and just reimported them. cheers
This answer solved my problem after upgrading Soomla's Store plugin.