Hello everyone, I’ve been pulling my hair out over this issue the past few hours and after lots of online research I have gotten no where. I’ve noticed this is a very common and recurring problem yet none of the solutions I’ve found do anything, most likely because they are all a few years old and just about everything that’s involved has had its versions updated.
I recently added the unity facebook sdk (Unity SDK - Documentation - Meta for Developers) to my project and have been trying to build on my android device to no success. I get the mentioned error “Failed to re-package resources” and am only given a huge wall of text error that I can’t make heads or tails of. (I’ve added it to the bottom of this post.)
Like I mentioned before, I’ve scoured this website and many others for solutions so please don’t just point me to an old question that’s been asked on here, I promise you none of those are working. I’m completely stumped at this point, my guess is that some sort of android related file got messed up with its version number or something but I have no idea how to find it.
Unity Version: 2017.3
Android SDK version: 27
Long error: CommandInvokationFailure: Failed to re-package resources.
C:\AndroidSDK\build-tools\25.0.2\aapt.exe package --auto-add-overlay -v -f -m -J “gen” -M “AndroidManifest.xml” -S “res” -I “C:/AndroidSDK\platforms\android-25\android.jar” -F bin/resources.ap_ --extra-packages android.support.graphics.drawable.animated:android.support.v7.appcompat:android.support.v7.cardview:android.support.customtabs: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.google.unity.ads:com.google.android.gms.ads.impl:com.google.android.gms.admob.impl.license:com.google.android.gms.admob:com.google.android.gms.admob.license:com.google.android.gms:com.google.android.gms.common.license:com.google.android.gms.gass:com.google.android.gms.gass.license:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4:android.support.graphics.drawable -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\animated-vector-drawable-25.3.1\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\cardview-v7-25.3.1\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\customtabs-25.3.1\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.11.0\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\facebook-applinks\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\facebook-common\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\facebook-core\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\facebook-login\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\facebook-messenger\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\facebook-places\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\facebook-share\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\play-services-ads-11.8.0\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\play-services-ads-lite-11.8.0\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\play-services-basement-11.8.0\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\play-services-gass-11.8.0\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\support-compat-25.3.1\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\support-core-ui-25.3.1\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\support-core-utils-25.3.1\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\support-fragment-25.3.1\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\support-media-compat-25.3.1\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\support-v4-25.3.1\res” -S “F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\support-vector-drawable-25.3.1\res”
stderr[
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\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
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\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
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_action_mode_close_item_material.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/abc_action_mode_close_item_material for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\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
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\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
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/abc_alert_dialog_button_bar_material for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\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
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\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
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_alert_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/abc_alert_dialog_title_material for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\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
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/abc_dialog_title_material for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\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
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_popup_menu_header_item_layout.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/abc_popup_menu_header_item_layout for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\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
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_popup_menu_item_layout.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/abc_popup_menu_item_layout for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/abc_screen_toolbar for configuration v21.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/abc_search_view for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\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
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_select_dialog_material.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/abc_select_dialog_material for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\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
F:\GameDev\UnityProjects\OrbitaLui\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
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_device_auth_dialog_fragment.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/com_facebook_device_auth_dialog_fragment for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\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
F:\GameDev\UnityProjects\OrbitaLui\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
F:\GameDev\UnityProjects\OrbitaLui\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
F:\GameDev\UnityProjects\OrbitaLui\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
F:\GameDev\UnityProjects\OrbitaLui\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
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\facebook-common\res\layout\com_facebook_smart_device_dialog_fragment.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/com_facebook_smart_device_dialog_fragment for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout
otification_action.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout
otification_action.xml:32: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout
otification_action.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/notification_action for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout
otification_action_tombstone.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout
otification_action_tombstone.xml:37: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout
otification_action_tombstone.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/notification_action_tombstone for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/notification_template_big_media for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media_custom.xml:89: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media_custom.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media_custom.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media_custom.xml:56: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media_custom.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media_custom.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media_custom.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media_custom.xml: note: using v17 attributes; synthesizing resource com.MichaelSciortino.OrbitaLui:layout/notification_template_big_media_custom for configuration v17.
F:\GameDev\UnityProjects\OrbitaLui\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11
otification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from
F:\GameDev\UnityProjects\OrbitaLui\Temp