2017-10-10 63 views
0

我在构建apk时遇到了CommandInvokationFailure错误。我目前正在使用谷歌播放游戏插件和Facebook SDK从他们的官方网站和一些统一服务,如统一IAP,分析等。我试过我可以但我无法解决这个问题。提前致谢。Unity3D - CommandInvokationFailure:无法重新打包资源

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> 

回答

0

我通过删除不同版本的支持库,升级android sdk和其他所有东西,最后降级工具t r25.2.5来解决了问题。耗尽