Error building Player: CommandInvokationFailure: Failed to re-package resources
来源:互联网 发布:visio软件官方下载 编辑:程序博客网 时间:2024/06/06 03:36
在eclipse中接第三方sdk后再unity中报错。
报错详情—————————————————————————————————start—————————————————————————————————————
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
D:\android_sdk\build-tools\23.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/android_sdk\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages com.firefly.BattleWarriors.anqu -S "F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res"stderr[
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xhdpi\anqusdk_icon_user.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-mdpi\app_icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xhdpi\bg_big.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
libpng error: Not a PNG file
ERROR: Failure processing PNG image F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\daota.png
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\menu\main.xml:3: note: removing attribute http://schemas.android.com/apk/res/android:showAsAction from <item>
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\menu\main.xml: note: using v11 attributes; synthesizing resource com.firefly.BattleWarriors.anqu:menu/main for configuration v11.
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_dialog_alert_exit.xml:1: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/com_anqusdk_dialog_bg').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_dialog_alert_exit.xml:31: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/com_anqupay_line').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_dialog_alert_exit.xml:48: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/com_anqupay_exit_btn_selector').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_dialog_alert_exit.xml:61: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/com_anqupay_pay_btn_selector').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_init.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/anqusdk_dialog_bg').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_loading_dialog.xml:1: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/com_anqusdk_dialog_bg').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_loading_dialog.xml:10: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/com_anqusdk_iv_bg').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_login.xml:19: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/com_anqusdk_login_edittext_bg').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_login.xml:38: error: Error: No resource found that matches the given name (at 'drawableRight' with value '@drawable/com_anqusdk_delete_selector').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_login.xml:57: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/com_anqusdk_login_edittext_bg').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_login.xml:77: error: Error: No resource found that matches the given name (at 'drawableRight' with value '@drawable/com_anqusdk_delete_selector').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_login.xml:136: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/anqusdk_btn_style_one_normal').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_logout.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/anqusdk_dialog_bg').
F:\bwand_game\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_anqusdk_logout.xml:31: error: Error: No resource found that matches the given name ( (at 'background' with value '@drawable/anqusdk_bt
报错详情—————————————————————————————————end—————————————————————————————————————
这个问题出现过两次,
第一次把XXX\sdk\build-tools里面的24这个文件夹删除掉后,解决问题。
第二次把libs里面的jar包有资源的拷贝到对应的文件夹里面,删除掉jar包的资源后,解决问题。
第三次前边两种方法都用了,还是报错。按照unity给的提示,把那几张图片删掉,把一些xml里面的一些代码删掉后,解决问题。
具体原因我也不明白,只是解决了我自己的问题。
- Error building Player: CommandInvokationFailure: Failed to re-package resources
- Error building Player CommandInvokationFailure Failed to re-package resources.
- U3D的坑--CommandInvokationFailure: Failed to re-package resources.
- CommandInvokationFailure: Failed to re-package resources. See the Console for details.
- Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the
- Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the
- unity导出apk时Error building Player: CommandInvokationFailure: Unable to convert classes into dex forma
- 【Android】Error building Player: CommandInvokationFailure: Unable to convert classes into dex format.
- Unity3d-Unable to locate Android SDK &&Failed to re-package resources.
- Unity3d build打包app时报错:Failed to re-package resources. See the Console for details.
- Unity出现 error building player exception android (invocation failed)
- Error building Player: UnityException: Unable to install APK!
- Error building Player: Exception: Error
- Failed to import package with error: Couldn't decompress package
- Failed to sync Gradle project'xxxx' error:Re-downlod....
- Untiy导入package时报错Failed to import package with error: Couldn't decompress package
- Error:Maven Resources Compiler: Failed to copy 'XXX' to 'YYY': YYY (拒绝访问。)
- PACKAGE “VISUAL C++ PACKAGE” FAILED TO LOAD
- dpi px dp计算公式
- 在O(n)时间内查找数组内第k小的数
- POJ1979 dfs
- oracle数据库_实例_用户_表空间之间的关系
- CCF 201612-4 交通规划(spfa)
- Error building Player: CommandInvokationFailure: Failed to re-package resources
- 服务器中判断客户端socket断开连接的方法
- 大批量数据插入
- adb常用指令
- Android--开发人员不得不收集的代码
- iOS开发 - UITableview的基本用法
- eval
- 深度学习的应用——检测糖尿病型视网膜症
- VS2013/MFC编程入门之二十三(常用控件:列表框控件ListBox)