Search Unity

Failed To Re-Package Resources

Discussion in 'Editor & General Support' started by KoalaSquad, Jun 25, 2016.

  1. KoalaSquad

    KoalaSquad

    Joined:
    Feb 14, 2015
    Posts:
    5
    I Cant Figure This One Out:



    Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
    C:\Users\Hunter\androidsdk\build-tools\build-tools-23.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/Hunter/androidsdk\platforms\android-24\android.jar" -F bin/resources.ap_ --extra-packages android.support.v7.appcompat:com.google.firebase:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.auth:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.nearby:com.google.android.gms.tasks:android.support.v4 -S "C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res" -S "C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\firebase-common-9.0.2\res" -S "C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\play-services-ads-9.0.2\res" -S "C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\play-services-ads-lite-9.0.2\res" -S "C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\play-services-auth-base-9.0.2\res" -S "C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res" -S "C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\play-services-basement-9.0.2\res" -S "C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\play-services-drive-9.0.2\res" -S "C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\play-services-games-9.0.2\res" -S "C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\play-services-nearby-9.0.2\res" -S "C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\play-services-tasks-9.0.2\res" -S "C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\support-v4-23.1.1\res"

    stderr[
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\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>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/abc_alert_dialog_button_bar_material for configuration v17.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\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>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_alert_dialog_material.xml: note: using v17 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/abc_alert_dialog_material for configuration v17.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <TextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/abc_dialog_title_material for configuration v17.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.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>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/abc_screen_toolbar for configuration v21.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/abc_search_view for configuration v17.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/notification_template_big_media for configuration v17.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <LinearLayout>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <include>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml: note: using v17 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/notification_template_big_media_narrow for configuration v17.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_lines.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <LinearLayout>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_lines.xml:77: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_lines.xml:96: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_lines.xml:64: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_lines.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_lines.xml: note: using v17 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/notification_template_lines for configuration v17.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_media.xml:43: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <include>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_media.xml:33: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_media.xml: note: using v17 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/notification_template_media for configuration v17.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_part_chronometer.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <Chronometer>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_part_chronometer.xml: note: using v17 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/notification_template_part_chronometer for configuration v17.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_part_time.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <DateTimeView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_part_time.xml: note: using v17 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/notification_template_part_time for configuration v17.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <CheckedTextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <CheckedTextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:drawableStart from <CheckedTextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml: note: using v13 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/select_dialog_multichoice_material for configuration v13.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <CheckedTextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <CheckedTextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:drawableStart from <CheckedTextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml: note: using v13 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/select_dialog_singlechoice_material for configuration v13.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\drawable\abc_textfield_search_material.xml:19: note: removing attribute http://schemas.android.com/apk/res/android:state_activated from <item>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\drawable\abc_textfield_search_material.xml: note: using v11 attributes; synthesizing resource com.KoalaSquad.SWAP:drawable/abc_textfield_search_material for configuration v11.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <CheckedTextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <CheckedTextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml: note: using v17 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/select_dialog_multichoice_material for configuration v17.
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <CheckedTextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <CheckedTextView>
    C:\Users\Hunter\Desktop\Swap\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml: note: using v17 attributes; synthesizing resource com.KoalaSquad.SWAP:layout/select_dialog_singlechoice_material for configuration v17.
    AndroidManifest.xml:12: Tag <provider> attribute authorities has invalid character '$'.
    ]
    stdout[
    Configurations:
    (default)

    Files:
    AndroidManifest.xml
    Src: () AndroidManifest.xml

    Resource Dirs:
    Including resources from package: C:\Users\Hunter\androidsdk\platforms\android-24\android.jar
    applyFileOverlay for drawable
    trying overlaySet Key=common_full_open_on_phone.png
    trying overlaySet Key=common_google_signin_btn_icon_dark.xml
    trying overlaySet Key=common_google_signin_btn_icon_dark_disabled.9.png
    trying overlaySet Key=common_google_signin_btn_icon_dark_focused.9.png
    trying overlaySet Key=common_google_signin_btn_icon_dark_normal.9.png
    trying overlaySet Key=common_google_signin_btn_icon_dark_pressed.9.png
    trying overlaySet Key=common_google_signin_btn_icon_light.xml
    trying overlaySet Key=common_google_signin_btn_icon_light_disabled.9.png
    trying overlaySet Key=common_google_signin_btn_icon_light_focused.9.png
    trying overlaySet Key=common_google_signin_btn_icon_light_normal.9.png
    trying overlaySet Key=common_google_signin_btn_icon_light_pressed.9.png
    trying overlaySet Key=common_google_signin_btn_text_dark.xml
    trying overlaySet Key=common_google_signin_btn_text_dark_disabled.9.png
    trying overlaySet Key=common_google_signin_btn_text_dark_focused.9.png
    trying overlaySet Key=common_google_signin_btn_text_dark_normal.9.png
    trying overlaySet Key=common_google_signin_btn_text_dark_pressed.9.png
    trying overlaySet Key=common_google_signin_btn_text_light.xml
    trying overlaySet Key=common_google_signin_btn_text_light_disabled.9.png
    trying overlaySet Key=common_google_signin_btn_text_light_focused.9.png
    trying overlaySet Key=common_google_signin_btn_text_light_normal.9.png
    trying overlaySet Key=common_google_signin_btn_text_light_pressed.9.png
    trying overlaySet Key=common_ic_googleplayservices.png
    trying overlaySet Key=common_plus_signin_btn_icon_dark.xml
    trying overlaySet Key=common_plus_signin_btn_icon_dark_disabled.9.png
    trying overlaySet Key=common_plus_signin_btn_icon_dark_focused.9.png
    trying overlaySet Key=common_plus_sign<message truncated>
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    You can see that the message is truncated by the Unity console output (see the end of the log you posted).
    When this occurs, please attach the FULL LOG you get, by opening the Editor log:
    upload_2016-6-25_23-36-42.png

    Once you get the full log it will be much easier to understand what's going on.