Hi Friends ,
I am really hope less , I have added google play latest version in my game , But I am not able to build it .
I am Using : play-games-plugin-for-unity /current-build /GooglePlayGamesPlugin-0.9.27.unitypackage
Please find the error below .
Error Says ;
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
E:\Abhijit_Android_Game\adt-bundle-windows-x86_64-20140624\sdk\build-tools\21.1.2\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S “res” -I “E:/Abhijit_Android_Game/adt-bundle-windows-x86_64-20140624/sdk\platforms\android-21\android.jar” -F bin/resources.ap_ --extra-packages android.support.v7.appcompat: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.OnePointSix.KillerTraps -S “E:\Abhijit_Android_Game\New Unity Project\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res” -S “E:\Abhijit_Android_Game\New Unity Project\Temp\StagingArea\android-libraries\play-services-base-8.3.0\res” -S “E:\Abhijit_Android_Game\New Unity Project\Temp\StagingArea\android-libraries\play-services-basement-8.3.0\res” -S “E:\Abhijit_Android_Game\New Unity Project\Temp\StagingArea\android-libraries\play-services-drive-8.3.0\res” -S “E:\Abhijit_Android_Game\New Unity Project\Temp\StagingArea\android-libraries\play-services-games-8.3.0\res” -S “E:\Abhijit_Android_Game\New Unity Project\Temp\StagingArea\android-libraries\play-services-nearby-8.3.0\res” -S “E:\Abhijit_Android_Game\New Unity Project\Temp\StagingArea\android-libraries\play-services-plus-8.3.0\res” -S “E:\Abhijit_Android_Game\New Unity Project\Temp\StagingArea\android-libraries\support-v4-23.1.1\res” -S “E:\Abhijit_Android_Game\New Unity Project\Temp\StagingArea\android-libraries\unity-android-resources\res”
stderr[
E:\Abhijit_Android_Game\New Unity Project\Temp\StagingArea\android-libraries\play-services-basement-8.3.0\res\values\common_attrs.xml:13: error: Attribute “imageAspectRatioAdjust” has already been defined
E:\Abhijit_Android_Game\New Unity Project\Temp\StagingArea\android-libraries\play-services-basement-8.3.0\res\values\common_attrs.xml:22: error: Attribute “imageAspectRatio” has already been defined
E:\Abhijit_Android_Game\New Unity Project\Temp\StagingArea\android-libraries\play-services-basement-8.3.0\res\values\common_attrs.xml:27: error: Attribute “circleCrop” has already been defined
MY Android MainFest.xml
<?xml version="1.0" encoding="utf-8"?>
Please Help ! I have found same open issue in github page :
opened 04:49PM - 20 Nov 15 UTC
closed 12:57PM - 03 Dec 15 UTC
After update to 0.9.27 i got error and can`t make build.
```
Building of Generi… c 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.
This was the issue with , Android API level , I need to upgrade to API level 6 , I download all the packages of API 6 from android sdk manager .
1 Like