Unity 安卓打包中遇见的那些坑

提前准备:

  • 以下遇见的坑是我在往项目里集成国内外知名互联网公司的SDK中遇见的,不管怎样总算是从坑里爬出来了,之所以把错误代码全部贴出来,是希望大家“活学活用”,也希望大家给出建议,毕竟自己也是在熟悉这一块!
  • 关于“.aapt.exe”的那点事,详情请参考:Android AAPT详解,我就不再这里赘述了。
  • 关于“-auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I”
    引用某网友中,表示“在Android外挂项目里的res文件夹里有的地方的xml设置文件里的设置内容找不到”

参考文档:
记录Android-Studio遇到的各种坑

错误一:CommandInvokationFailure: Failed to re-package resources.

声明: 用Unity5.5.1f1建立的工程,FacebookUnitySDK的版本是7.10.1
简介:按照Facebook开发文档提示完成配置,打包以后,报出如下错误:

CommandInvokationFailure: Failed to re-package resources.
D:\SoftDown\Work\adt-bundle-windows-x86_64\sdk\build-tools\23.0.1\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I D:/SoftDown/Work/adt-bundle-windows-x86_64/sdk\platforms\android-25\android.jar" -F bin/resources.ap_ --extra-packages com.facebook:com.facebook.android -S "F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res" -S "F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.10.1\res"

stderr[
F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\values\values.xml:131: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.

F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\values\values.xml:136: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Dialog'.

]
stdout[
Configurations:
 (default)

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

Resource Dirs:
Including resources from package: D:\SoftDown\Work\adt-bundle-windows-x86_64\sdk\platforms\android-25\android.jar
applyFileOverlay for drawable
trying overlaySet Key=com_facebook_auth_dialog_background.xml
trying overlaySet Key=com_facebook_auth_dialog_cancel_background.xml
trying overlaySet Key=com_facebook_auth_dialog_header_background.xml
trying overlaySet Key=com_facebook_button_background.xml
trying overlaySet Key=com_facebook_button_icon.xml
trying overlaySet Key=com_facebook_button_icon_blue.png
trying overlaySet Key=com_facebook_button_icon_white.png
trying overlaySet Key=com_facebook_button_like_background.xml
trying overlaySet Key=com_facebook_button_like_icon_selected.png
trying overlaySet Key=com_facebook_button_login_background.xml
trying overlaySet Key=com_facebook_button_login_logo.xml
trying overlaySet Key=com_facebook_button_login_silver_background.xml
trying overlaySet Key=com_facebook_button_send_background.xml
trying overlaySet Key=com_facebook_button_send_icon_blue.png
trying overlaySet Key=com_facebook_button_send_icon_white.png
trying overlaySet Key=com_facebook_close.png
trying overlaySet Key=com_facebook_favicon_blue.xml
trying overlaySet Key=com_facebook_profile_picture_blank_portrait.png
trying overlaySet Key=com_facebook_profile_picture_blank_square.png
trying overlaySet Key=com_facebook_send_button_icon.xml
trying overlaySet Key=com_facebook_tooltip_black_background.9.png
trying overlaySet Key=com_facebook_tooltip_black_bottomnub.png
trying overlaySet Key=com_facebook_tooltip_black_topnub.png
trying overlaySet Key=com_facebook_tooltip_black_xout.png
trying overlaySet Key=com_facebook_tooltip_blue_background.9.png
trying overlaySet Key=com_facebook_tooltip_blue_bottomnub.png
trying overlaySet Key=com_facebook_tooltip_blue_topnub.png
trying overlaySet Key=com_facebook_tooltip_blue_xout.png
trying overlaySet Key=messenger_bubble_large_blue.png
trying overlaySet Key=messenger_bubble_large_white.png
trying overlaySet Key=messenger_bubble_small_blue.png
trying overlaySet Key=messenger_bubble_small_white.png
trying overlaySet Key=messenger_button_blue_bg_round.xml
trying overlaySet Key=messenger_button_blue_bg_selector.xml
trying overlaySet Key=messenger_button_send_round_shadow.png
trying overlaySet Key=messenger_button_white_bg_round.xml
trying overlaySet Key=messenger_button_white_bg_selector.xml
trying overlaySet Key=app_banner.png
trying overlaySet Key=app_icon.png
applyFileOverlay for layout
trying overlaySet Key=com_facebook_activity_layout.xml
trying overlaySet Key=com_facebook_device_auth_dialog_fragment.xml
trying overlaySet Key=com_facebook_login_fragment.xml
trying overlaySet Key=com_facebook_smart_device_dialog_fragment.xml
trying overlaySet Key=com_facebook_tooltip_bubble.xml
trying overlaySet Key=messenger_button_send_blue_large.xml
trying overlaySet Key=messenger_button_send_blue_round.xml
trying overlaySet Key=messenger_button_send_blue_small.xml
trying overlaySet Key=messenger_button_send_white_large.xml
trying overlaySet Key=messenger_button_send_white_round.xml
trying overlaySet Key=messenger_button_send_white_small.xml
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
trying overlaySet Key=com_facebook_button_text_color.xml
trying overlaySet Key=com_facebook_send_button_text_color.xml
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: res\drawable-xhdpi\app_banner.png
Processing image: res\drawable-mdpi\app_icon.png
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_button_icon_blue.png
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_button_icon_blue.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_button_icon_blue.png: 34% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_button_icon_blue.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_button_icon_blue.png: 27% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xxhdpi-v4\com_facebook_button_icon_blue.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_button_icon_blue.png: 25% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_button_icon_white.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xxhdpi-v4\com_facebook_button_icon_blue.png: 17% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_button_icon_white.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_button_icon_white.png: 161% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_button_icon_white.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_button_icon_white.png: 158% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xxhdpi-v4\com_facebook_button_icon_white.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_button_icon_white.png: 162% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_button_like_icon_selected.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xxhdpi-v4\com_facebook_button_icon_white.png: 158% size of source)
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_button_like_icon_selected.png: 156% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_button_like_icon_selected.png
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_button_like_icon_selected.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_button_like_icon_selected.png: 147% size of source)
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_button_like_icon_selected.png: Processin140% size ofg imag e:s ource)
F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xxhdpi-v4\com_facebook_button_like_icon_selected.png
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_button_send_icon_blue.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_button_send_icon_blue.png: 61% size of source)
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xxhdpi-v4\com_facebook_button_like_icon_selected.png: 137% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_button_send_icon_blue.png
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_button_send_icon_blue.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_button_send_icon_blue.png: 65% size of source)
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_button_send_icon_blue.png: 89% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\reProcessings\drawa imable-ge: mdFp:\Myi-v4\Gictohub\m_faceboUniok_bty\uTtton_send_icon_white.png
estBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_button_send_icon_white.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_button_send_icon_white.png: 75% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_button_send_icon_white.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_button_send_icon_white.png: 137% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xxhdpi-v4\com_facebook_button_send_icon_white.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_button_send_icon_white.png: 128% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_close.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xxhdpi-v4\com_facebook_button_send_icon_white.png: 109% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_close.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_close.png: 123% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_close.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_close.png: 135% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_profile_picture_blank_portrait.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_close.png: 108% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_profile_picture_blank_square.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_profile_picture_blank_portrait.png: 109% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_tooltip_black_background.9.png
    (processed image res\drawable-mdpi\app_icon.png: 94% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_tooltip_black_background.9.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_profile_picture_blank_square.png: 109% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_tooltip_black_background.9.png
    (processed image res\drawable-xhdpi\app_banner.png: 93% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_tooltip_black_bottomnub.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-mdpi-v4\com_facebook_tooltip_black_bottomnub.png: 167% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_tooltip_black_bottomnub.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-hdpi-v4\com_facebook_tooltip_black_bottomnub.png: 177% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_tooltip_black_bottomnub.png
    (processed image F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\drawable-xhdpi-v4\com_facebook_tooltip_black_bottomnub.png: 172% size of source)
Processing image: F:\MyGithub\Unity\TestBuildFBUnitySDKPackage\Temp\StagingArea\a<message truncated>

解决办法:有点坑爹,试了网上N种方法都不行,最后用Unity5.6.3f1建立工程就好了,猜测应该是版本问题比较低,有些资源没有读取到。如果那个朋友知道原因,请不吝赐教,虚心接受!!!

错误二:

CommandInvokationFailure: Failed to re-package resources.
D:\SoftDown\Work\adt-bundle-windows-x86_64\sdk\build-tools\23.0.1\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I 
"D:/SoftDown/Work/adt-bundle-windows-x86_64/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:android.support.customtabs:com.facebook:com.facebook.android:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4:android.support.graphics.drawable:com.pi.usb.resources -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\animated-vector-drawable-25.3.1\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\cardview-v7-25.3.1\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\customtabs-25.3.1\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.10.1\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\support-compat-25.3.1\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\support-core-ui-25.3.1\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\support-core-utils-25.3.1\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\support-fragment-25.3.1\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\support-media-compat-25.3.1\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\support-v4-25.3.1\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\support-vector-drawable-25.3.1\res" -S "D:\proje-1\Client\Temp\StagingArea\android-libraries\unity-android-resources\res"

stderr[
D:\proje-1\Client\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\umeng_socialize_facebook_close.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\proje-1\Client\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\umeng_socialize_refersh.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\proje-1\Client\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\umeng_socialize_title_back_bt_normal.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\proje-1\Client\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 <ImageView>
D:\proje-1\Client\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 <ImageView>
D:\proje-1\Client\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.pi.usb:layout/abc_action_mode_close_item_material for configuration v17.
D:\proje-1\Client\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 <ScrollView>
D:\proje-1\Client\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 <android.support.v7.widget.ButtonBarLayout>
D:\proje-1\Client\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.pi.usb:layout/abc_alert_dialog_button_bar_material for configuration v17.
D:\proje-1\Client\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:\proje-1\Client\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:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_alert_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.pi.usb:layout/abc_alert_dialog_title_material for configuration v17.
D:\proje-1\Client\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 <TextView>
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.pi.usb:layout/abc_dialog_title_material for configuration v17.
D:\proje-1\Client\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:\proje-1\Client\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.pi.usb:layout/abc_popup_menu_header_item_layout for configuration v17.
D:\proje-1\Client\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 <ImageView>
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_popup_menu_item_layout.xml: note: using v17 attributes; synthesizing resource com.pi.usb:layout/abc_popup_menu_item_layout for configuration v17.
D:\proje-1\Client\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 <android.support.v7.widget.ActionBarContainer>
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.pi.usb:layout/abc_screen_toolbar for configuration v21.
D:\proje-1\Client\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 <LinearLayout>
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource com.pi.usb:layout/abc_search_view for configuration v17.
D:\proje-1\Client\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 <view>
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\abc_select_dialog_material.xml: note: using v17 attributes; synthesizing resource com.pi.usb:layout/abc_select_dialog_material for configuration v17.
D:\proje-1\Client\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.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:\proje-1\Client\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.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:\proje-1\Client\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_device_auth_dialog_fragment.xml: note: using v17 attributes; synthesizing resource com.pi.usb:layout/com_facebook_device_auth_dialog_fragment for configuration v17.
D:\proje-1\Client\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:94: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
D:\proje-1\Client\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:94: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <TextView>
D:\proje-1\Client\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:83: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
D:\proje-1\Client\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_smart_device_dialog_fragment.xml:83: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <TextView>
D:\proje-1\Client\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.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:\proje-1\Client\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\res\layout\com_facebook_smart_device_dialog_fragment.xml: note: using v17 attributes; synthesizing resource com.pi.usb:layout/com_facebook_smart_device_dialog_fragment for configuration v17.
D:\proje-1\Client\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:\proje-1\Client\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:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\notification_action.xml: note: using v17 attributes; synthesizing resource com.pi.usb:layout/notification_action for configuration v17.
D:\proje-1\Client\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:\proje-1\Client\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:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout\notification_action_tombstone.xml: note: using v17 attributes; synthesizing resource com.pi.usb:layout/notification_action_tombstone for configuration v17.
D:\proje-1\Client\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:\proje-1\Client\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:\proje-1\Client\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:\proje-1\Client\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:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.pi.usb:layout/notification_template_big_media for configuration v17.
D:\proje-1\Client\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:\proje-1\Client\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:\proje-1\Client\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:\proje-1\Client\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:\proje-1\Client\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:\proje-1\Client\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:\proje-1\Client\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:\proje-1\Client\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.pi.usb:layout/notification_template_big_media_custom for configuration v17.
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView>
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <LinearLayout>
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <include>
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_narrow.xml: note: using v17 attributes; synthesizing resource com.pi.usb:layout/notification_template_big_media_narrow for configuration v17.
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_narrow_custom.xml:107: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView>
D:\proje-1\Client\Temp\StagingArea\android-libraries\appcompat-v7-25.3.1\res\layout-v11\notification_template_big_media_narrow_custom.xml:93: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf<message truncated>

解决办法:这一次自己做的比较简单粗暴,根据stderr中的信息,有的是warning,有的是note,试了后多种办法,自己就选择了将提示为note的的文件给干掉了,因为我们无法修改Temp的文件,所以只能选择干掉原文件!但是,我这样做是有依据的,因为无法找到提示的错误,我怀疑是新导入的SDK与之前实现类似功能的libraries中的库冲突,经试验可行,自己都觉得很狗屎......

错误三:

打包进行的阶段-Build DEX

出错给的提示

开发之路从来走的都不容易,已经在最后的一个阶段了,但是也碰见最难的问题了,面对强敌也要敢于亮剑,所以错误提示如下:

CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files/Java/jdk1.8.0_111\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="D:/SoftDown/Work/adt-bundle-windows-x86_64/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\UnityInstall\Unity5.6.3f1\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.logging.impl.LogFactoryImpl$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.logging.impl.LogFactoryImpl$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.logging.impl.LogFactoryImpl$3) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.logging.impl.SimpleLog$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.logging.impl.WeakHashtable$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.logging.LogFactory$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.logging.LogFactory$3) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.logging.LogFactory$5) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.logging.LogFactory$6) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.logging.LogFactory$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.logging.LogFactory$4) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.nio.SelectChannelConnector$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.security.SslSocketConnector$SslConnection$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.security.SecurityHandler$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.security.HashUserRealm$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.security.SecurityHandler$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.security.HashUserRealm$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.deployer.ContextDeployer$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.HttpFields$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.servlet.HashSessionManager$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.servlet.HashSessionManager$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.HttpFields$4) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.Request$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.HttpFields$5) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.HttpConnection$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.HttpFields$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.HttpFields$3) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.jetty.AbstractBuffers$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.mortbay.resource.JarResource$1) that doesn't come with an
associated EnclosingMethod attribute. This <message truncated>

吐槽一下,之所以说是目前我遇见的UnityAndroid打包遇见的最难解的Bug,原因的stderr中给的提示,其他的提示,该删则删,该简则简,但是这种的真的不好找.......

错误分析:表示从Android工程复制过来的libs文件夹里的东西和Unity的有冲突,通常是含有和Unity的classes.jar相同内容的jar文件。--Unity如何挂接Android程序

解决办法:

  • 检查 Assets\Plugins\Android 下是否有文件重复。
  • 删除 classes.jar文件 assets和libs 都检查下,因为这文件u3d本身就自带了,和SDK交互需要拷贝到eclipse里,复制回U3D又重复了。
  • 删除 android-support-v*** 打头的文件 如android-support-v7-appcompat.jar
  • AndroidManifest.xml 配置问题,需要进一步排查。
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 199,636评论 5 468
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 83,890评论 2 376
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 146,680评论 0 330
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 53,766评论 1 271
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 62,665评论 5 359
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,045评论 1 276
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,515评论 3 390
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,182评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,334评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,274评论 2 317
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,319评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,002评论 3 315
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,599评论 3 303
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,675评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,917评论 1 255
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,309评论 2 345
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 41,885评论 2 341

推荐阅读更多精彩内容