playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.46k stars 967 forks source link

Failed to re-package resources #818

Closed doterax closed 8 years ago

doterax commented 8 years ago

After update to 0.9.27 i got error and can`t make build.

Building of Generic is not successful. Error: Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\adt-bundle-windows-x86_64-20140702\sdk\build-tools\21.1.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/adt-bundle-windows-x86_64-20140702/sdk\platforms\android-22\android.jar" -F bin/resources.ap_ --extra-packages android.support.v7.appcompat:com.chartboost.sdk.unity:com.facebook:com.facebook.android:com.google.android.gms:com.heyzap: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:com.candygrill.aquapolisgame:com.vk.sdk:com.pushok.test -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res" -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\facebook-android-sdk-4.7.0\res" -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\facebook-android-wrapper-release\res" -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\google-play-services_lib\res" -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\play-services-base-8.3.0\res" -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\play-services-basement-8.3.0\res" -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\play-services-drive-8.3.0\res" -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\play-services-games-8.3.0\res" -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\play-services-nearby-8.3.0\res" -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\play-services-plus-8.3.0\res" -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\support-v4-23.1.1\res" -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\unity-android-resources\res" -S "D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\vk-android-sdk\res"

stderr[
D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-v19\app_icon_notification.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-mdpi-v19\app_icon_notification.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi-v19\app_icon_notification.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xhdpi-v19\app_icon_notification.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xxhdpi-v19\app_icon_notification.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xxxhdpi-v19\app_icon_notification.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-ldpi\com_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_attrs.xml:13: error: Attribute "imageAspectRatioAdjust" has already been defined

D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_attrs.xml:22: error: Attribute "imageAspectRatio" has already been defined

D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_attrs.xml:27: error: Attribute "circleCrop" has already been defined

D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\values-v23\values-v23.xml:5: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.

D:\Projects\aquapolis-game\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\values-v23\values-v23.xml:30: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.

]

I found in StagingArea files defined 'imageAspectRatioAdjust' in

Temp\StagingArea\android-libraries\play-services-basement-8.3.0\res\values\common_attrs.xml
Temp\StagingArea\android-libraries\google-play-services_lib\res\values\common_attrs.xml

I think library google-play-services_lib is redunant. I delete folder

Assets\Plugins\Android\google-play-services_lib\

But when I make build its reappears in this place.

claywilkinson commented 8 years ago

Is this still an issue? Did you find out how the google-play-services_lib is reappearing? Another alternative is to disable the background resolution of the aar files, by commenting out lines 106-114 of Assets/GooglePlayGames/Editor/BackgroundResolution.cs until you get this resolved.

doterax commented 8 years ago

No its not your issue. Our own build system reappear google-play-services_lib. We do this when make Amazon build without google-play-services.