- Home /
Facebook SDK Android Error Message: "Failed to re-package resources. See Console for details"
Every time I try to deploy my project to an android phone for testing I keep getting the pop up message, "Failed to re-package resources". I imported the Facebook SDK version 7.11.1 and am on Unity 2017. My Android Studio SDK is up-to-date as well. Two errors are appearing in the console, the first is this incredibly long trace:
CommandInvokationFailure: Failed to re-package resources.
C:\Users\dwise\AppData\Local\Android\Sdk\build-tools\27.0.1\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/dwise/AppData/Local/Android/Sdk\platforms\android-27\android.jar" -F bin/resources.ap_ --extra-packages android.support.graphics.drawable.animated:android.support.v7.appcompat:android.support.v7.cardview:android.support.customtabs:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4:android.support.graphics.drawable: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.unity3d.player -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.animated-vector-drawable-25.3.1\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.cardview-v7-25.3.1\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.customtabs-25.3.1\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.support-compat-25.3.1\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.support-core-ui-25.3.1\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.support-core-utils-25.3.1\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.support-fragment-25.3.1\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-25.3.1\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.support-v4-25.3.1\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.support-vector-drawable-25.3.1\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.11.1\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-applinks\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-common\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-core\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-login\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-messenger\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-places\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-share\res" -S "D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\VuforiaWrapper\res"
stderr[
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_action_mode_close_item_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <ImageView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_action_mode_close_item_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <ImageView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_action_mode_close_item_material.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/abc_action_mode_close_item_material for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_alert_dialog_button_bar_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:scrollIndicators from <ScrollView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_alert_dialog_button_bar_material.xml:26: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <android.support.v7.widget.ButtonBarLayout>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/abc_alert_dialog_button_bar_material for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_alert_dialog_title_material.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <android.support.v7.widget.DialogTitle>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_alert_dialog_title_material.xml:36: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <ImageView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_alert_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/abc_alert_dialog_title_material for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <TextView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/abc_dialog_title_material for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_popup_menu_header_item_layout.xml:24: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <TextView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_popup_menu_header_item_layout.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/abc_popup_menu_header_item_layout for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_popup_menu_item_layout.xml:59: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <ImageView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_popup_menu_item_layout.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/abc_popup_menu_item_layout for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from <android.support.v7.widget.ActionBarContainer>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.roocards:layout/abc_screen_toolbar for configuration v21.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/abc_search_view for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_select_dialog_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <view>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_select_dialog_material.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/abc_select_dialog_material for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_device_auth_dialog_fragment.xml:80: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <TextView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_device_auth_dialog_fragment.xml:80: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_device_auth_dialog_fragment.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/com_facebook_device_auth_dialog_fragment for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_smart_device_dialog_fragment.xml:94: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_smart_device_dialog_fragment.xml:94: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <TextView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_smart_device_dialog_fragment.xml:83: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_smart_device_dialog_fragment.xml:83: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <TextView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_smart_device_dialog_fragment.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <android.support.v7.widget.AppCompatImageView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_smart_device_dialog_fragment.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/com_facebook_smart_device_dialog_fragment for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\notification_action.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <LinearLayout>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\notification_action.xml:32: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\notification_action.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/notification_action for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\notification_action_tombstone.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <LinearLayout>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\notification_action_tombstone.xml:37: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\notification_action_tombstone.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/notification_action_tombstone for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <include>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.roocards:layout/notification_template_big_media for configuration v17.
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:89: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <LinearLayout>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:56: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <FrameLayout>
D:\Roocards Files\Builds\RooCardsMVP\RooCardsMVP\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <FrameLayout>
the second is in relation to Build Player:
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:181
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:88
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
I've tried every solution I could think of but have had no luck. If anyone can help diagnose where these errors are coming from it will be much appreciated.
Your answer
![](https://koobas.hobune.stream/wayback/20220612155705im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Facebook SDK v7.2 login not working when on android 2 Answers
Android app crashes on launch after removing Facebook SDK 1 Answer
How to remove Facebook SDK from project when I don't need that? 1 Answer
Facebook SDK login problem on Android 0 Answers
Failed to update Android SDK Package List - Unity 2019.2.10f1 10 Answers