nabrozidhs / unity_admob_android

Basic Unity3D plugin for AdMob Google Play Services version.
MIT License
25 stars 12 forks source link

Error building for android when repackage. #22

Closed SergG90 closed 9 years ago

SergG90 commented 9 years ago

I Installed and adapted your ads plugin to my game and when I try to build for android I get those 2 errors:

CommandInvokationFailure: Failed to re-package resources. See the Console for details. C:\AndroidSDK\build-tools\22.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/AndroidSDK\platforms\android-22\android.jar" -F bin/resources.ap_ --extra-packages com.google.android.gms:com.google.example.games.mainlibproj -S "C:...\Game\Temp\StagingArea\android-libraries\google-play-services_lib\res"

Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details. C:\AndroidSDK\build-tools\22.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/AndroidSDK\platforms\android-22\android.jar" -F bin/resources.ap_ --extra-packages com.google.android.gms:com.google.example.games.mainlibproj -S "C:...\Game\Temp\StagingArea\android-libraries\google-play-services_lib\res"

I use last Unity free version.

What can I do? Is a problem of Android SDK or I'm missing something?

nabrozidhs commented 9 years ago

I'll give it a try this weekend, in the meantime can you double check that no other library includes the google play services?

nabrozidhs commented 9 years ago

Try removing your custom AndroidManifest and start from scratch I had a similar problem after updating the project to the latest Unity3D version.