• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by MAWMatt · Jun 04, 2018 at 09:25 AM · androidbuild-errormanifest

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. alt text


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

screenshot-2.png (21.4 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MAWMatt · Jun 04, 2018 at 05:20 PM 0
Share

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.

avatar image
0

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MAWMatt · Jun 06, 2018 at 07:51 PM 0
Share

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.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

192 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Gradle Build Error: The attribute application@allowBackups=false in :audioinaec: collides with another value 1 Answer

unable to merge android manifests 0 Answers

Facebook SDK 7.2.2 does not work with Unity 5.3.0f4 0 Answers

Need help combining 2 AndroidManifest.xml different plugins? 1 Answer

Change an Android app's manifest by putting manifest.xml in Plugins/Android folder? 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges