- Home /
CommandInvokationFailure: Failed to re-package resources
I am facing this problem with unity 5.6.6f2 and facebook all sdk. This problem occurs with facebook sdk 7.12.0, I also try 7.12.1 but still getting same error. I can't integrate facebook in unity 5.6.6f2. I found one thing that is with library version. When I import "Google mobile ads" sdk, Android resolver install library version 26.0.1 (This google mobile ads works with this library.) and When I try to install facebook sdk or chartboost sdk it install library 25.3.1(Not working - can't built apk).
I don't know what is problem. But I can't make built because it show error with after start recompiling.
My console log is below. Any one can help here..
CommandInvokationFailure: Failed to re-package resources.
E:\sdk\sdk\build-tools\23.0.3\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "E:/sdk/sdk\platforms\android-27\android.jar" -F bin/resources.ap_ --extra-packages com.facebook.android:com.facebook.applinks:com.facebook.common:com.facebook.core:com.facebook.login:com.facebook.messenger:com.facebook.places:com.facebook.share -S "C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.12.0\res" -S "C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res" -S "C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-login\res" -S "C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-messenger\res" -S "C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res"
stderr[
C:\TestingApp\TestingApp\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'.
C:\TestingApp\TestingApp\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)
mdpi-v4
hdpi-v4
xhdpi-v4
xxhdpi-v4
Files:
color\com_facebook_send_button_text_color.xml
Src: () C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\color\com_facebook_send_button_text_color.xml
drawable\com_facebook_button_send_background.xml
Src: () C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable\com_facebook_button_send_background.xml
drawable\com_facebook_button_send_icon_blue.png
Src: (mdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-mdpi-v4\com_facebook_button_send_icon_blue.png
Src: (hdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-hdpi-v4\com_facebook_button_send_icon_blue.png
Src: (xhdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xhdpi-v4\com_facebook_button_send_icon_blue.png
drawable\com_facebook_button_send_icon_white.png
Src: (mdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-mdpi-v4\com_facebook_button_send_icon_white.png
Src: (hdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-hdpi-v4\com_facebook_button_send_icon_white.png
Src: (xhdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xhdpi-v4\com_facebook_button_send_icon_white.png
Src: (xxhdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xxhdpi-v4\com_facebook_button_send_icon_white.png
drawable\com_facebook_send_button_icon.xml
Src: () C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable\com_facebook_send_button_icon.xml
values\values.xml
Src: () C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\values\values.xml
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Type color
color\com_facebook_send_button_text_color.xml
Src: () C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\color\com_facebook_send_button_text_color.xml
Type drawable
drawable\com_facebook_button_send_background.xml
Src: () C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable\com_facebook_button_send_background.xml
drawable\com_facebook_button_send_icon_blue.png
Src: (mdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-mdpi-v4\com_facebook_button_send_icon_blue.png
Src: (hdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-hdpi-v4\com_facebook_button_send_icon_blue.png
Src: (xhdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xhdpi-v4\com_facebook_button_send_icon_blue.png
drawable\com_facebook_button_send_icon_white.png
Src: (mdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-mdpi-v4\com_facebook_button_send_icon_white.png
Src: (hdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-hdpi-v4\com_facebook_button_send_icon_white.png
Src: (xhdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xhdpi-v4\com_facebook_button_send_icon_white.png
Src: (xxhdpi-v4) C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xxhdpi-v4\com_facebook_button_send_icon_white.png
drawable\com_facebook_send_button_icon.xml
Src: () C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable\com_facebook_send_button_icon.xml
Type values
values\values.xml
Src: () C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\values\values.xml
Including resources from package: E:\sdk\sdk\platforms\android-27\android.jar
applyFileOverlay for drawable
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=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
applyFileOverlay for color
trying overlaySet Key=com_facebook_button_text_color.xml
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: rePsrocess\idnrga wiambalgee: -xhrdepsi\\darpapw_abble-annemrd.ppin\ga
pp_icon.png
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_button_icon_blue.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_button_icon_blue.png: 130% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_button_icon_blue.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_button_icon_blue.png: 122% size of source)
(processed image res\drawable-mdpi\app_icon.png: 94% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_button_icon_blue.png
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xxhdpi-v4\com_facebook_button_icon_blue.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\an (processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xxhdpi-v4\com_facebook_button_icon_blue.png: 119% size of source)
droid-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_button_icon_blue.png: 122% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_button_icon_white.png
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_button_icon_white.png
Processing image: C : \ T(epsrtingApp\TestingoAcpessed image Cp:\\TTemp\StagingAreae\satnidnrgoAipdp-\TestingApp\Temlpi\bSraries\facebookt-acgingArea\androiodm-mlon\res\drawablei-bxrhadrpiie-v4\com_faceboosk\_facebook-commobnu\trton_icon_white.epsn\gd
rawable-hdpi-v4\com_facebook_button_icon_white.png: 158% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xxhdpi-v4\com_facebook_button_icon_white.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_button_icon_white.png: 162% size of source)
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xxhdpi-v4\com_facebook_button_icon_white.png: 158% size of source)
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_button_icon_white.png: 161% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_button_like_icon_selected.png
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_button_like_icon_selected.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_button_like_icon_selected.png: 156% size of source)
Processing image: C:\TestingApp\Test i n g A(ppp\Temp\StagingArroecae\sasneddr oiimda-ge C:\TestingAlpipb\rTaerstingApp\Temp\Sies\facebook-ctoamgmionng\Arreesa\\darndroid-librarieawable-xhdpi-v4s\\cfoamc_ebook-common\refsa\cderbaowok_button_like_aibcloen-_hsdpi-v4\com_facelected.png
ebook_button_like_icon_selected.png: 139% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xxhdpi-v4\com_facebook_button_like_icon_selected.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_button_like_icon_selected.png: 131% size of source)
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xxhdpi-v4\com_facebook_button_like_icon_selected.png: 126% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-mdpi-v4\com_facebook_button_send_icon_blue.png
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-hdpi-v4\com_facebook_button_send_icon_blue.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-mdpi-v4\com_facebook_button_send_icon_blue.png: 146% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xhdpi-v4\com_facebook_button_send_icon_blue.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-hdpi-v4\com_facebook_button_send_icon_blue.png: 138% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-mdpi-v4\com_facebook_button_send_icon_white.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xhdpi-v4\com_facebook_button_send_icon_blue.png: 180% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-hdpi-v4\com_facebook_button_send_icon_white.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-mdpi-v4\com_facebook_button_send_icon_white.png: 103% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xhdpi-v4\com_facebook_button_send_icon_white.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-hdpi-v4\com_facebook_button_send_icon_white.png: 188% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xxhdpi-v4\com_facebook_button_send_icon_white.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xhdpi-v4\com_facebook_button_send_icon_white.png: 186% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-mdpi-v4\com_facebook_close.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-share\res\drawable-xxhdpi-v4\com_facebook _ b u (processed tton_send_iciomna_gweh itC:\TestingApep.\pTnegs:t ingApp\Temp\171% sizeS toafg isnogArea\androidu-rlcieb)r
aries\facebook-common\res\drawable-mdpi-v4\com_facebook_close.png: 125% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_close.png
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_close.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-xhdpi-v4\com_facebook_close.png: 135% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-login\res\drawable-mdpi-v4\com_facebook_profile_picture_blank_portrait.png
(processed image C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-common\res\drawable-hdpi-v4\com_facebook_close.png: 108% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingArea\android-libraries\facebook-login\res\drawable-mdpi-v4\com_facebook_profile_picture_blank_square.png
(processed image res\drawable-xhdpi\app_banner.png: 93% size of source)
Processing image: C:\TestingApp\TestingApp\Temp\StagingAr<message truncated>
Your answer
Follow this Question
Related Questions
Gradle error after Facebook SDK update 0 Answers
facebook sdk problem 1 Answer
Facebook SDK and Audience Network SDK Android conflict 1 Answer
Problem Geting friends Facebook Sdk 0 Answers
Facebook SDK v7.2 login not working when on android 2 Answers