2017-10-10 7 views
0

J'ai rencontré l'erreur CommandInvokationFailure lors de la création d'apk. J'utilise actuellement le plugin Google Play Games et le SDK Facebook de leurs sites Web officiels ainsi que certains services Unity comme Unity IAP, Analytics, etc. J'ai essayé ce que je pouvais mais je n'ai pas pu résoudre le problème. Merci d'avance.Unity3D - CommandInvokationFailure: Impossible de réorganiser les ressources

CommandInvokationFailure: Failed to re-package resources. D:\AndroidSDK\build-tools\26.0.2\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "D:/AndroidSDK\platforms\android-26\android.jar" -F bin/resources.ap_ --extra-packages android.support.graphics.drawable.animated:android.support.graphics.drawable.animated:android.support.v7.appcompat:android.support.v7.appcompat:android.support.v7.cardview:android.support.v7.cardview:android.support.customtabs:android.support.customtabs:com.facebook:com.facebook.android:com.google.example.games.mainlibproj:com.google.android.gms.auth.api: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.compat:android.support.compat:android.support.coreui:android.support.coreui:android.support.coreutils:android.support.coreutils:android.support.fragment:android.support.fragment:android.support.mediacompat:android.support.mediacompat:android.support.v4:android.support.v4:android.support.v4:android.support.graphics.drawable:android.support.graphics.drawable:com.unity3d.ads:com.unity.channel.sdk.editor.xiaomi -S "D:\MyProject\Temp\StagingArea\android-libraries\animated-vector-drawable-23.4.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\animated-vector-drawable-25.3.1\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\cardview-v7-23.4.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\cardview-v7-25.3.1\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\customtabs-23.4.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\customtabs-25.3.1\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.9.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\play-services-auth-10.2.6\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\play-services-auth-base-10.2.6\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\play-services-base-10.2.6\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\play-services-basement-10.2.6\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\play-services-drive-10.2.6\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\play-services-games-10.2.6\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\play-services-nearby-10.2.6\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\play-services-tasks-10.2.6\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-compat-25.2.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-compat-25.3.1\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-core-ui-25.2.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-core-ui-25.3.1\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-core-utils-25.2.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-core-utils-25.3.1\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-fragment-25.2.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-fragment-25.3.1\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-media-compat-25.2.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-media-compat-25.3.1\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-v4-23.4.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-v4-25.2.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-v4-25.3.1\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-vector-drawable-23.4.0\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\support-vector-drawable-25.3.1\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\UnityAds\res" -S "D:\MyProject\Temp\StagingArea\android-libraries\UnityChannel\res" 

    stderr[ 
    D:\MyProject\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:\MyProject\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.granada.bilgiyaris:layout/abc_alert_dialog_button_bar_material for configuration v17. 
    D:\MyProject\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:\MyProject\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_material.xml: note: using v17 attributes; synthesizing resource com.granada.bilgiyaris:layout/abc_alert_dialog_material for configuration v17. 
    D:\MyProject\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 <android.support.v7.widget.DialogTitle> 
    D:\MyProject\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 <ImageView> 
    D:\MyProject\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_alert_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.granada.bilgiyaris:layout/abc_alert_dialog_title_material for configuration v17. 
    D:\MyProject\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 <TextView> 
    D:\MyProject\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.granada.bilgiyaris:layout/abc_dialog_title_material for configuration v17. 
    D:\MyProject\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 <TextView> 
    D:\MyProject\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.granada.bilgiyaris:layout/abc_popup_menu_header_item_layout for configuration v17. 
    D:\MyProject\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:\MyProject\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.granada.bilgiyaris:layout/abc_screen_toolbar for configuration v21. 
    D:\MyProject\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 <LinearLayout> 
    D:\MyProject\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource com.granada.bilgiyaris:layout/abc_search_view for configuration v17. 
    D:\MyProject\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 <TextView> 
    D:\MyProject\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 <TextView> 
    D:\MyProject\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.granada.bilgiyaris:layout/com_facebook_device_auth_dialog_fragment for configuration v17. 
    D:\MyProject\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 <TextView> 
    D:\MyProject\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 <TextView> 
    D:\MyProject\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:\MyProject\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res\layout\com_facebook_smart_device_dialog_fragment.xml: note: using v17 attributes; synthesizing resource com.granada.bilgiyaris:layout/com_facebook_smart_device_dialog_fragment for configuration v17. 
    D:\MyProject\Temp\StagingArea\android-libraries\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:\MyProject\Temp\StagingArea\android-libraries\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:\MyProject\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\notification_action.xml: note: using v17 attributes; synthesizing resource com.granada.bilgiyaris:layout/notification_action for configuration v17. 
    D:\MyProject\Temp\StagingArea\android-libraries\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:\MyProject\Temp\StagingArea\android-libraries\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:\MyProject\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\notification_action_tombstone.xml: note: using v17 attributes; synthesizing resource com.granada.bilgiyaris:layout/notification_action_tombstone for configuration v17. 
    D:\MyProject\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 <LinearLayout> 
    D:\MyProject\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 <include> 
    D:\MyProject\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 <include> 
    D:\MyProject\Temp\StagingArea\android-libraries\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:\MyProject\Temp\StagingArea\android-libraries\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:\MyProject\Temp\StagingArea\android-libraries\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:\MyProject\Temp\StagingArea\android-libraries\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:\MyProject\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.granada.bilgiyaris:layout/notification_template_big_media for configuration v17. 
    D:\MyProject\Temp\StagingArea\android-libraries\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:\MyProject\Temp\StagingArea\android-libraries\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:\MyProject\Temp\StagingArea\android-libraries\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:\MyProject\Temp\StagingArea\android-libraries\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:\MyProject\Temp\StagingArea\android-libraries\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> 
    D:\MyProject\Temp\StagingArea\android-libraries\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_marginEnd from <FrameLayout> 
    D:\MyProject\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <include> 
    D:\MyProject\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_custom.xml: note: using v17 attributes; synthesizing resource com.granada.bilgiyaris:layout/notification_template_big_media_custom for configuration v17. 
    D:\MyProject\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 <ImageView> 
    D:\MyProject\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 <LinearLayout> 
    D:\MyProject\Temp\StagingArea\android-libraries\appcompat<message truncated> 

Répondre

0

Je fixe problème en supprimant différentes bibliothèques de support de version, la mise à niveau Android sdk et tout le reste, et enfin des outils t déclasser r25.2.5. Épuisant