Question by
DroidifyDevs · Jan 03, 2016 at 04:36 PM ·
androiderrorbuildsdkleaderboards
Maddening error when trying to add Google Leaderboards
So my project was working just fine until I added the Google Play Services so I could use the leaderboards. Now, I can't build my project with the error "Failed to repackage sources, see console for details". Here are the details:
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Program Files (x86)\Android\android-sdk\build-tools\20.0.0\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 android.support.v7.appcompat:com.google.unity:com.google.example.games.mainlibproj:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.nearby:com.google.android.gms.plus:android.support.v4 -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\play-services-base-8.4.0\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\play-services-basement-8.4.0\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\play-services-drive-8.4.0\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\play-services-games-8.4.0\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\play-services-nearby-8.4.0\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\play-services-plus-8.4.0\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\support-v4-23.1.1\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)
Files:
AndroidManifest.xml
Src: () AndroidManifest.xml
And this:
CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Program Files (x86)\Android\android-sdk\build-tools\20.0.0\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 android.support.v7.appcompat:com.google.unity:com.google.example.games.mainlibproj:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.nearby:com.google.android.gms.plus:android.support.v4 -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\play-services-base-8.4.0\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\play-services-basement-8.4.0\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\play-services-drive-8.4.0\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\play-services-games-8.4.0\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\play-services-nearby-8.4.0\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\play-services-plus-8.4.0\res" -S "C:\Users\Me2\Music\ROCKET TEST\Temp\StagingArea\android-libraries\support-v4-23.1.1\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)
Files:
AndroidManifest.xml
Src: () AndroidManifest.xml
If someone could PLEASE help I'd be so grateful as Google provides no support and this is something I really need in my game. THANK YOU!
Comment