unity導出apk錯誤出錯解決方法


CommandInvokationFailure: Failed to re-package resources. See the Console for details.
F:\adt-bundle-windows-x86_64\sdk\build-tools\28.0.3\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "F:\adt-bundle-windows-x86_64\sdk\platforms\android-24\android.jar" -F bin/resources.ap_ --extra-packages com.senses.miaongp -S "E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res"

stderr[
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_ab_back_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:autoMirrored from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_ab_back_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_ab_back_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_ab_back_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_ab_back_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:pathData from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_ab_back_material.xml: note: using v19 attributes; synthesizing resource com.senses.miaongp:drawable/abc_ic_ab_back_material for configuration v19.
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:autoMirrored from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:6: note: removing attribute http://schemas.android.com/apk/res/android:pathData from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:5: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:5: note: removing attribute http://schemas.android.com/apk/res/android:pathData from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml: note: using v19 attributes; synthesizing resource com.senses.miaongp:drawable/abc_ic_arrow_drop_right_black_24dp for configuration v19.
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_clear_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_clear_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_clear_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_clear_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:pathData from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_clear_material.xml: note: using v21 attributes; synthesizing resource com.senses.miaongp:drawable/abc_ic_clear_material for configuration v21.
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_go_search_api_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_go_search_api_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_go_search_api_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_go_search_api_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:pathData from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_go_search_api_material.xml: note: using v21 attributes; synthesizing resource com.senses.miaongp:drawable/abc_ic_go_search_api_material for configuration v21.
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_menu_overflow_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_menu_overflow_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_menu_overflow_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_menu_overflow_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:pathData from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_menu_overflow_material.xml: note: using v21 attributes; synthesizing resource com.senses.miaongp:drawable/abc_ic_menu_overflow_material for configuration v21.
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_search_api_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_search_api_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_search_api_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_search_api_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:pathData from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_search_api_material.xml: note: using v21 attributes; synthesizing resource com.senses.miaongp:drawable/abc_ic_search_api_material for configuration v21.
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_voice_search_api_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_voice_search_api_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_voice_search_api_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_voice_search_api_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:pathData from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_voice_search_api_material.xml: note: using v21 attributes; synthesizing resource com.senses.miaongp:drawable/abc_ic_voice_search_api_material for configuration v21.
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_vector_test.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_vector_test.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_vector_test.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_vector_test.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:pathData from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_vector_test.xml: note: using v21 attributes; synthesizing resource com.senses.miaongp:drawable/abc_vector_test for configuration v21.
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\com_facebook_button_login_logo.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\com_facebook_button_login_logo.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\com_facebook_button_login_logo.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\com_facebook_button_login_logo.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:pathData from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\com_facebook_button_login_logo.xml: note: using v21 attributes; synthesizing resource com.senses.miaongp:drawable/com_facebook_button_login_logo for configuration v21.
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\com_facebook_favicon_blue.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\com_facebook_favicon_blue.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\com_facebook_favicon_blue.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\com_facebook_favicon_blue.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:pathData from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\com_facebook_favicon_blue.xml: note: using v21 attributes; synthesizing resource com.senses.miaongp:drawable/com_facebook_favicon_blue for configuration v21.
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_ab_back_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_ab_back_material.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_ab_back_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_ab_back_material.xml:4: note: removing attribute http://schemas.android.com/apk/res/android:pathData from <path>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_ab_back_material.xml: note: using v21 attributes; synthesizing resource com.senses.miaongp:drawable/abc_ic_ab_back_material for configuration v21.
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from <vector>
E:\HBWork\oversea_en\HBClientDev_Android\client_project\Temp\StagingArea\android-libraries\unity-android-resour<message truncated>

 

類似CommandInvokationFailure: Failed to re-package resources. See the Console for details.這個問題 解決方法:

1.android sdk版本選擇大於等於插件資源所需的版本本例為例(platforms/android-26,build-tools/26以上)

2.若方法1還未能解決這個問題,則重新檢查遍res下資源是否完整

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM