failed to re package resources

hii, i have a problem, i build my game to android but i see error Failed to re package resources I NEED HELP

CommandInvokationFailure: Failed to re-package resources.
F:\Android\sdk\build-tools\25.0.2\aapt.exe package --auto-add-overlay -v -f -m -J “gen” -M “AndroidManifest.xml” -S “res” -I “F:/Android/sdk\platforms\android-25\android.jar” -F bin/resources.ap_ --extra-packages android.support.graphics.drawable.animated:android.support.v7.appcompat:android.support.v7.cardview:com.chartboost.sdk.unity:com.unity.purchasing:android.support.customtabs:com.facebook:com.facebook.android:com.android.vending.billing:com.unity.purchasing.googleplay:android.support.v4:android.support.graphics.drawable -S “D:\emoji\Temp\StagingArea\android-libraries\animated-vector-drawable-23.4.0\res” -S “D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res” -S “D:\emoji\Temp\StagingArea\android-libraries\cardview-v7-23.4.0\res” -S “D:\emoji\Temp\StagingArea\android-libraries\common\res” -S “D:\emoji\Temp\StagingArea\android-libraries\customtabs-23.4.0\res” -S “D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res” -S “D:\emoji\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.9.4\res” -S “D:\emoji\Temp\StagingArea\android-libraries\GoogleAIDL\res” -S “D:\emoji\Temp\StagingArea\android-libraries\GooglePlay\res” -S “D:\emoji\Temp\StagingArea\android-libraries\support-v4-23.4.0\res” -S “D:\emoji\Temp\StagingArea\android-libraries\support-vector-drawable-23.4.0\res”

stderr[
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_button_bar_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <android.support.v7.widget.ButtonBarLayout>
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/abc_alert_dialog_button_bar_material for configuration v17.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_material.xml:48: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <android.support.v7.widget.DialogTitle>
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_material.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/abc_alert_dialog_material for configuration v17.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/abc_dialog_title_material for configuration v17.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\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:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/abc_screen_toolbar for configuration v21.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/abc_search_view for configuration v17.
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:100: note: removing attribute http://schemas.android.com/apk/res/android:fontFamily from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:80: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:80: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:80: note: removing attribute http://schemas.android.com/apk/res/android:fontFamily from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:56: note: removing attribute http://schemas.android.com/apk/res/android:fontFamily from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_device_auth_dialog_fragment.xml: note: using v16 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/com_facebook_device_auth_dialog_fragment for configuration v16.
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:136: note: removing attribute http://schemas.android.com/apk/res/android:fontFamily from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:112: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:112: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:59: note: removing attribute http://schemas.android.com/apk/res/android:fontFamily from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\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:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_smart_device_dialog_fragment.xml: note: using v16 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/com_facebook_smart_device_dialog_fragment for configuration v16.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/notification_template_big_media for configuration v17.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/notification_template_big_media_narrow for configuration v17.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:77: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:96: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:64: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/notification_template_lines for configuration v17.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_media.xml:43: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_media.xml:33: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_media.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/notification_template_media for configuration v17.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_part_chronometer.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_part_chronometer.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/notification_template_part_chronometer for configuration v17.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_part_time.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_part_time.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/notification_template_part_time for configuration v17.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_multichoice_material.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/select_dialog_multichoice_material for configuration v17.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_singlechoice_material.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:layout/select_dialog_singlechoice_material for configuration v17.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\drawable\abc_ratingbar_indicator_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:tileModeX from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\drawable\abc_ratingbar_indicator_material.xml: note: using v21 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:drawable/abc_ratingbar_indicator_material for configuration v21.
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\drawable\abc_ratingbar_small_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:tileModeX from
D:\emoji\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\drawable\abc_ratingbar_small_material.xml: note: using v21 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:drawable/abc_ratingbar_small_material for configuration v21.
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\drawable\com_facebook_favicon_blue.xml:21: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\drawable\com_facebook_favicon_blue.xml:21: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\drawable\com_facebook_favicon_blue.xml:26: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\drawable\com_facebook_favicon_blue.xml:26: note: removing attribute http://schemas.android.com/apk/res/android:pathData from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\drawable\com_facebook_favicon_blue.xml: note: using v21 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:drawable/com_facebook_favicon_blue for configuration v21.
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:80: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_device_auth_dialog_fragment.xml:80: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
D:\emoji\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_device_auth_dialog_fragment.xml: note: using v17 attributes; synthesizing resource com.Family4GamersSoft.Emojicrush:lay

Were you able to resolve this issue ?

Unfortunately, the Console window in Unity has a maximal message length it can display. As you can see, the message ends with “message truncated”; the most important part is in the end of that error message.

In order to get the full error message, you should reproduce the error, then open the editor log file, by clicking the little ‘lines’ icon at the top right corner of the Console window, and then select “Open Editor.log”. This can also be done by directly opening the log file (you can find where it’s stored in this link).

Once you find the log, you can post the full error message and we’ll try to assist you.

NOTE: I can also provide a professional service for fixing this type of errors, please have a look at the link in my signature below in case you’re interested :slight_smile: