- Home /
Android Build Failure (CommandInvokationFailure)
Hi folks,
I've seen other people with a similar problem, but each seems to be slightly unique. I don't know what exactly to do to fix this issue.
These are the current packages I have installed.
The error I get when I try to build (this is using the Internal build system now since Gradle was a nightmare).
CommandInvokationFailure: Failed to re-package resources.
F:\Programs\AndroidSDK\build-tools\27.0.3\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "F:/Programs/AndroidSDK\platforms\android-27\android.jar" -F bin/resources.ap_ --extra-packages com.unity.purchasing:com.facebook.android:com.facebook.applinks:com.facebook.common:com.facebook.core:com.facebook.login:com.facebook.messenger:com.facebook.places:com.facebook.share:com.android.vending.billing:com.unity.purchasing.googleplay:com.onesignal:com.onesignal.onesignalsdk:com.unity3d.ads -S "F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\common\res" -S "F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.12.0\res" -S "F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res" -S "F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-login\res" -S "F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-messenger\res" -S "F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res" -S "F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\GoogleAIDL\res" -S "F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\GooglePlay\res" -S "F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\onesignal-unity\res" -S "F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\OneSignalConfig\res" -S "F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\unity-ads\res"
stderr[
F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\values\values.xml:72: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.
F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\values\values.xml:77: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Dialog'.
]
stdout[
Configurations:
(default)
Files:
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Including resources from package: F:\Programs\AndroidSDK\platforms\android-27\android.jar
applyFileOverlay for drawable
trying overlaySet Key=ic_onesignal_large_icon_default.png
trying overlaySet Key=ic_stat_onesignal_default.png
trying overlaySet Key=ic_os_notification_fallback_white_24dp.png
trying overlaySet Key=com_facebook_button_send_background.xml
trying overlaySet Key=com_facebook_button_send_icon_blue.png
trying overlaySet Key=com_facebook_button_send_icon_white.png
trying overlaySet Key=com_facebook_send_button_icon.xml
trying overlaySet Key=messenger_bubble_large_blue.png
trying overlaySet Key=messenger_bubble_large_white.png
trying overlaySet Key=messenger_bubble_small_blue.png
trying overlaySet Key=messenger_bubble_small_white.png
trying overlaySet Key=messenger_button_blue_bg_round.xml
trying overlaySet Key=messenger_button_blue_bg_selector.xml
trying overlaySet Key=messenger_button_send_round_shadow.png
trying overlaySet Key=messenger_button_white_bg_round.xml
trying overlaySet Key=messenger_button_white_bg_selector.xml
trying overlaySet Key=com_facebook_button_login_background.xml
trying overlaySet Key=com_facebook_button_login_logo.xml
trying overlaySet Key=com_facebook_button_login_silver_background.xml
trying overlaySet Key=com_facebook_profile_picture_blank_portrait.png
trying overlaySet Key=com_facebook_profile_picture_blank_square.png
trying overlaySet Key=com_facebook_tooltip_black_background.9.png
trying overlaySet Key=com_facebook_tooltip_black_bottomnub.png
trying overlaySet Key=com_facebook_tooltip_black_topnub.png
trying overlaySet Key=com_facebook_tooltip_black_xout.png
trying overlaySet Key=com_facebook_tooltip_blue_background.9.png
trying overlaySet Key=com_facebook_tooltip_blue_bottomnub.png
trying overlaySet Key=com_facebook_tooltip_blue_topnub.png
trying overlaySet Key=com_facebook_tooltip_blue_xout.png
trying overlaySet Key=com_facebook_auth_dialog_background.xml
trying overlaySet Key=com_facebook_auth_dialog_cancel_background.xml
trying overlaySet Key=com_facebook_auth_dialog_header_background.xml
trying overlaySet Key=com_facebook_button_background.xml
trying overlaySet Key=com_facebook_button_icon.xml
trying overlaySet Key=com_facebook_button_icon_blue.png
trying overlaySet Key=com_facebook_button_icon_white.png
trying overlaySet Key=com_facebook_button_like_background.xml
trying overlaySet Key=com_facebook_button_like_icon_selected.png
trying overlaySet Key=com_facebook_close.png
trying overlaySet Key=com_facebook_favicon_blue.xml
trying overlaySet Key=app_banner.png
trying overlaySet Key=app_icon.png
applyFileOverlay for layout
trying overlaySet Key=onesignal_bgimage_notif_layout.xml
trying overlaySet Key=messenger_button_send_blue_large.xml
trying overlaySet Key=messenger_button_send_blue_round.xml
trying overlaySet Key=messenger_button_send_blue_small.xml
trying overlaySet Key=messenger_button_send_white_large.xml
trying overlaySet Key=messenger_button_send_white_round.xml
trying overlaySet Key=messenger_button_send_white_small.xml
trying overlaySet Key=com_facebook_tooltip_bubble.xml
trying overlaySet Key=com_facebook_activity_layout.xml
trying overlaySet Key=com_facebook_device_auth_dialog_fragment.xml
trying overlaySet Key=com_facebook_login_fragment.xml
trying overlaySet Key=com_facebook_smart_device_dialog_fragment.xml
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
trying overlaySet Key=notification.wav
trying overlaySet Key=consumer_onesignal_keep.xml
applyFileOverlay for color
trying overlaySet Key=com_facebook_send_button_text_color.xml
trying overlaySet Key=com_facebook_button_text_color.xml
applyFileOverlay for menu
applyFileOverlay for font
applyFileOverlay for mipmap
Processing image: res\drawable-xhdpi\app_banner.png
Processing image: res\drawable-mdpi\app_icon.png
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_button_icon_blue.png
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_button_icon_blue.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_button_icon_blue.png: 113% size of source)
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_button_icon_blue.png: 105% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_button_icon_blue.png
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xxhdpi-v4\com_facebook_button_icon_blue.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_button_icon_blue.png: 106% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_button_icon_white.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xxhdpi-v4\com_facebook_button_icon_blue.png: 103% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_button_icon_white.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_button_icon_white.png: 161% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_button_icon_white.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_button_icon_white.png: 157% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xxhdpi-v4\com_facebook_button_icon_white.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_button_icon_white.png: 162% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_button_like_icon_selected.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xxhdpi-v4\com_facebook_button_icon_white.png: 157% size of source)
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_button_like_icon_selected.png: 147% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_button_like_icon_selected.png
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_button_like_icon_selected.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_button_like_icon_selected.png: 138% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xxhdpi-v4\com_facebook_button_like_icon_selected.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_button_like_icon_selected.png: 130% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-mdpi-v4\com_facebook_button_send_icon_blue.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-mdpi-v4\com_facebook_button_send_icon_blue.png: 143% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-hdpi-v4\com_facebook_button_send_icon_blue.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xxhdpi-v4\com_facebook_button_like_icon_selected.png: 125% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xhdpi-v4\com_facebook_button_send_icon_blue.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-hdpi-v4\com_facebook_button_send_icon_blue.png: 136% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-mdpi-v4\com_facebook_button_send_icon_white.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xhdpi-v4\com_facebook_button_send_icon_blue.png: 179% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-hdpi-v4\com_facebook_button_send_icon_white.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-mdpi-v4\com_facebook_button_send_icon_white.png: 103% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xhdpi-v4\com_facebook_button_send_icon_white.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-hdpi-v4\com_facebook_button_send_icon_white.png: 187% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xxhdpi-v4\com_facebook_button_send_icon_white.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xhdpi-v4\com_facebook_button_send_icon_white.png: 185% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_close.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xxhdpi-v4\com_facebook_button_send_icon_white.png: 171% size of source)
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_close.png: 120% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_close.png
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_close.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_close.png: 132% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-login\res\drawable-mdpi-v4\com_facebook_profile_picture_blank_portrait.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_close.png: 108% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-login\res\drawable-mdpi-v4\com_facebook_profile_picture_blank_square.png
(processed image res\drawable-mdpi\app_icon.png: 90% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-login\res\drawable-mdpi-v4\com_facebook_tooltip_black_background.9.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-login\res\drawable-mdpi-v4\com_facebook_profile_picture_blank_portrait.png: 110% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-login\res\drawable-hdpi-v4\com_facebook_tooltip_black_background.9.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-login\res\drawable-mdpi-v4\com_facebook_tooltip_black_background.9.png: 142% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-login\res\drawable-xhdpi-v4\com_facebook_tooltip_black_background.9.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-login\res\drawable-mdpi-v4\com_facebook_profile_picture_blank_square.png: 110% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-login\res\drawable-mdpi-v4\com_facebook_tooltip_black_bottomnub.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-login\res\drawable-mdpi-v4\com_facebook_tooltip_black_bottomnub.png: 160% size of source)
Processing image: F:\Projects\Company\MyGame\Game\Temp\StagingArea\android-libraries\facebook-login\res\drawable-hdpi-v4\com_facebook_tooltip_black_bottomnub.png
(processed image F:\Projects\Company\MyGame\Game\Temp\StagingArea\and<message truncated>
I'm desperate to get this fixed and to a place where I can successfully make Android builds. I appreciate any help anyone has, I've tried so many different things!!
Thanks, -Matt
Answer by bhavinbhai2707 · Jun 04, 2018 at 09:31 AM
Which JDK version are you using??
if you are using java jdk 9 then downgrade it to java jdk 8(Download from here)
That should actually solve the issue.
Ah, I had already encountered that problem a few days ago and downgraded to JD$$anonymous$$ 8. Spot on otherwise. I think I may have gotten around this issue by using Facebook SD$$anonymous$$ 7.11.1, the newest ones seem to be broken. I also turned off stripping for now, I'll deal with that later.
Answer by liortal · Jun 06, 2018 at 05:06 PM
By the error you posted, looks like you have some libraries missing (AppCompat). Usually these are resolved by the PlayServicesResolver which is a plugin used by many 3rd parties that allows automatic resolving of any "dependencies" you may need. For some reason it's not included in your project and so the build is failing.
Yes thank you, I do actually have that but I think it was an older version when I first posted. Through the mixture of re-installing older versions of the various SD$$anonymous$$s, I managed to get it working (I make sure to use the latest PlayServicesResolver from Git) but I have no idea what specifically did it lol.