- Home /
Question by
williamxd51 · Jun 22, 2016 at 05:59 AM ·
androidbuildandroid builderror builderror-building-player
CommandInvokationFailure when building apk... Trying to use Google Play Services
I'm trying to make an app that uses google play services but this is the error i get:
CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\wsuh\AppData\Local\Android\sdk\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/wsuh/AppData/Local/Android/sdk\platforms\android-24\android.jar" -F bin/resources.ap_ --extra-packages com.google.firebase:com.google.example.games.mainlibproj:com.google.android.gms.auth: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.tasks:android.support.v4 -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\firebase-common-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-auth-base-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-basement-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-drive-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-games-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-nearby-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-tasks-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\support-v4-23.4.0\res"
stderr[
]
stdout[
Configurations:
(default)
Files:
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Including resources from package: C:\Users\wsuh\AppData\Local\Android\sdk\platforms\android-24\android.jar
applyFileOverlay for drawable
trying overlaySet Key=common_full_open_on_phone.png
trying overlaySet Key=common_google_signin_btn_icon_dark.xml
trying overlaySet Key=common_google_signin_btn_icon_dark_disabled.9.png
trying overlaySet Key=common_google_signin_btn_icon_dark_focused.9.png
trying overlaySet Key=common_google_signin_btn_icon_dark_normal.9.png
trying overlaySet Key=common_google_signin_btn_icon_dark_pressed.9.png
trying overlaySet Key=common_google_signin_btn_icon_light.xml
trying overlaySet Key=common_google_signin_btn_icon_light_disabled.9.png
trying overlaySet Key=common_google_signin_btn_icon_light_focused.9.png
trying overlaySet Key=common_google_signin_btn_icon_light_normal.9.png
trying overlaySet Key=common_google_signin_btn_icon_light_pressed.9.png
trying overlaySet Key=common_google_signin_btn_text_dark.xml
trying overlaySet Key=common_google_signin_btn_text_dark_disabled.9.png
trying overlaySet Key=common_google_signin_btn_text_dark_focused.9.png
trying overlaySet Key=common_google_signin_btn_text_dark_normal.9.png
trying overlaySet Key=common_google_signin_btn_text_dark_pressed.9.png
trying overlaySet Key=common_google_signin_btn_text_light.xml
trying overlaySet Key=common_google_signin_btn_text_light_disabled.9.png
trying overlaySet Key=common_google_signin_btn_text_light_focused.9.png
trying overlaySet Key=common_google_signin_btn_text_light_normal.9.png
trying overlaySet Key=common_google_signin_btn_text_light_pressed.9.png
trying overlaySet Key=common_ic_googleplayservices.png
trying overlaySet Key=common_plus_signin_btn_icon_dark.xml
trying overlaySet Key=common_plus_signin_btn_icon_dark_disabled.9.png
trying overlaySet Key=common_plus_signin_btn_icon_dark_focused.9.png
trying overlaySet Key=common_plus_signin_btn_icon_dark_normal.9.png
trying overlaySet Key=common_plus_signin_btn_icon_dark_pressed.9.png
trying overlaySet Key=common_plus_signin_btn_icon_light.xml
trying overlaySet Key=common_plus_signin_btn_icon_light_disabled.9.png
trying overlaySet Key=common_plus_signin_btn_icon_light_focused.9.png
trying overlaySet Key=common_plus_signin_btn_icon_light_normal.9.png
trying overlaySet Key=common_plus_signin_btn_icon_light_pressed.9.png
trying overlaySet Key=common_plus_signin_btn_text_dark.xml
trying overlaySet Key=common_plus_signin_btn_text_dark_disabled.9.png
trying overlaySet Key=common_plus_signin_btn_text_dark_focused.9.png
trying overlaySet Key=common_plus_signin_btn_text_dark_normal.9.png
trying overlaySet Key=common_plus_signin_btn_text_dark_pressed.9.png
trying overlaySet Key=common_plus_signin_btn_text_light.xml
trying overlaySet Key=common_plus_signin_btn_text_light_disabled.9.png
trying overlaySet Key=common_plus_signin_btn_text_light_focused.9.png
trying overlaySet Key=common_plus_signin_btn_text_light_normal.9.png
trying overlaySet Key=common_plus_signin_btn_text_light_pressed.9.png
trying overlaySet Key=app_banner.png
trying overlaySet Key=app_icon.png
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
trying overlaySet Key=common_google_signin_btn_text_dark.xml
trying overlaySet Key=common_google_signin_btn_text_light.xml
trying overlaySet Key=common_plus_signin_btn_text_dark.xml
trying overlaySet Key=common_plus_signin_btn_text_light.xml
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: res\drawable-xhdpi\app_banner.png
Processing image: res\drawable\app_icon.png
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-mdpi-v4\common_full_open_on_phone.png
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-tvdpi-v4\common_full_open_on_phone.png
(processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-mdpi-v4\common_full_open_on_phone.png: 136% size of source)
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-hdpi-v4\common_full_open_on_phone.png
(processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-tvdpi-v4\common_full_open_on_phone.png: 105% size of source)
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xhdpi-v4\common_full_open_on_phone.png
(processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-hdpi-v4\common_full_open_on_phone.png: 105% size of source)
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xxhdpi-v4\common_full_open_on_phone.png
(processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xhdpi-v4\common_full_open_on_phone.png: 105% size of source)
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-mdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png
(processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xxhdpi-v4\common_full_open_on_phone.png: 105% size of source)
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-tvdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png
(processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-mdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png: 270% size of source)
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png
(processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-tvdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png: 242% size of source)
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xhdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png
(processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png: 268% size of source)
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png
(processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xhdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png: 261% size of source)
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-mdpi-v4\common_google_signin_btn_icon_dark_focused.9.png
(processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-mdpi-v4\common_google_signin_btn_icon_dark_focused.9.png: 151% size of source)
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-tvdpi-v4\common_google_signin_btn_icon_dark_focused.9.png
(processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png: 244% size of source)
Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_focused.9.png
(processed image C:\User
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.PostProcessAndroidPlayer.Exec (System.String command, System.String args, System.String workingdir, System.String[] progress_strings, Single progress_value, System.String errorMsg)
UnityEditor.Android.PostProcessAndroidPlayer.CompileResources (System.String stagingArea, System.String packageName, UnityEditor.Android.AndroidLibraries androidLibraries)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.HostView:OnGUI()
How do i fix this? I've tried reinstalling the Android SDK, update every single library and tried creating apk from a blank project with only the google play services imported.
Comment
Your answer
Follow this Question
Related Questions
I have a build problem android. 0 Answers
Gradle build faild. see... error "in unity 2020.1.4f1!!!" 0 Answers
Unity Android IL2CPP Build Error 1 Answer
Distribute terrain in zones 3 Answers