先上错误日志~

luoxiaohuideMacBook-Pro:坑爹的apk luoxiaohui$ apktool b QuickPos2.0
I: Using Apktool 2.1.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: libpng error: Not a PNG file
W: ERROR: Failure processing PNG image /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/drawable-xhdpi-v4/my_progress_bg.png
W: libpng error: Not a PNG file
W: ERROR: Failure processing PNG image /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/drawable-xhdpi-v4/my_progress_bg_gray.png
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/drawable-xxhdpi-v4/yuan1.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/drawable-xxhdpi-v4/yuan2.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/drawable-xxhdpi-v4/yuan3.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/drawable-xxhdpi-v4/yuan4.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/drawable-xxhdpi-v4/yuan5.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/drawable-xxhdpi-v4/yuan6.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/drawable-xxhdpi-v4/yuan7.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/drawable-xxhdpi-v4/yuan8.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:57: error: Public symbol drawable/abs_clear_normal declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:58: error: Public symbol drawable/actionsheet_bottom_normal declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:59: error: Public symbol drawable/actionsheet_bottom_pressed declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:37: error: Public symbol drawable/actionsheet_bottom_selector declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:60: error: Public symbol drawable/actionsheet_middle_normal declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:61: error: Public symbol drawable/actionsheet_middle_pressed declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:38: error: Public symbol drawable/actionsheet_middle_selector declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:62: error: Public symbol drawable/actionsheet_single_normal declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:63: error: Public symbol drawable/actionsheet_single_pressed declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:39: error: Public symbol drawable/actionsheet_single_selector declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:64: error: Public symbol drawable/actionsheet_top_normal declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:65: error: Public symbol drawable/actionsheet_top_pressed declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:40: error: Public symbol drawable/actionsheet_top_selector declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:66: error: Public symbol drawable/addbankcard_swipecard declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:67: error: Public symbol drawable/addcommodity_photo declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:68: error: Public symbol drawable/agency declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:69: error: Public symbol drawable/agency_end declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:70: error: Public symbol drawable/agency_profit declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:71: error: Public symbol drawable/al01 declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:72: error: Public symbol drawable/alert_bg declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:73: error: Public symbol drawable/alert_btn_left_pressed declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:74: error: Public symbol drawable/alert_btn_right_pressed declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:75: error: Public symbol drawable/alert_btn_single_pressed declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:41: error: Public symbol drawable/alertdialog_left_selector declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:42: error: Public symbol drawable/alertdialog_right_selector declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:43: error: Public symbol drawable/alertdialog_single_selector declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:76: error: Public symbol drawable/arrow declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:77: error: Public symbol drawable/avatar declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:78: error: Public symbol drawable/ay01 declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:79: error: Public symbol drawable/ay02 declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:80: error: Public symbol drawable/back_normal declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:81: error: Public symbol drawable/bank_beijing declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:82: error: Public symbol drawable/bank_gongshang declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:83: error: Public symbol drawable/bank_guangfa declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:84: error: Public symbol drawable/bank_jianshe declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:85: error: Public symbol drawable/bank_jiaotong declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:86: error: Public symbol drawable/bank_minsheng declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:87: error: Public symbol drawable/bank_nongye declared here is not defined.
W: /Users/luoxiaohui/Develop/svn/坑爹的apk/QuickPos2.0/res/values/public.xml:88: error: Public symbol drawable/bank_pingan declared here is not defined.

关于shell打包,我在博客http://blog.csdn.net/a394268045/article/details/51058411有说明~
刚看到上面的错误日志,尝试了以下几种方法:
1. 升级apktool工具到最新版本;
2. 删除public.xml中报错误的id;
3. 将所有drawable资源都放到一个文件夹(比如都放到drawable-xhdpi)
4. 检查.9图片资源
发现还是不行,最后请教一朋友

原来图片资源ID找不到,是apktool工具的障眼法,导致它找不到的原因是,有两张图片资源受损!
当我让美工把这两张图片替换下,后面资源也都能找到了!

android shell打包报错相关推荐

  1. Android签名打包报错:Conversion to Dalvik fromat failed with error 1

    今天测试Quick-Cocos2dx-Community 最新版本,ndk对应版本是ndk-r10e.从编译到ADT中debug调试都没有问题,但是在最终签名打包时报了一个错:Conversion t ...

  2. Android编译打包报错Invalid keystore format

    问题描述 运行一个开源老项目,编译出现以下错误. java.io.IOException: Invalid keystore format Execution failed for task ':ap ...

  3. Android Studio打包报错: Pb(324)The type java.lang.Object cannot be resolved. It is indirectly ...

    报该错误一般都是低版本Gradle升级后出现,这是jdk版本与gradle不匹配导致,解决办法如下: 在Project Structure -> SDK Location -> JDK L ...

  4. 【Unity】打包报错 com.android.buil.gradle.internal.tasks.workers$ActionFacade

    问题的发生 Unity版本:Unity 2020.3.0f1c1 (64-bit) 直接使用Unity打包,打包报错 Console报错: 有些没存截图 但是大概内容是这样 gradleOut\uni ...

  5. Unity集成穿山甲后打包报错android:networkSecurityConfig , Picked up JAVA_TOOL_OPTIONS:-Dfile.encoding=UTF-8

    Unity集成穿山甲4.0SDK后打包报错 , /Users/-/Temp/gradleOut/unityLibrary/src/main/AndroidManifest.xml:31:3-138:1 ...

  6. android打包报错 AAPT: error: IDAT: incorrect data check. AAPT: error: file failed to compile.

    android打包报错 AAPT: error: IDAT: incorrect data check. AAPT: error: file failed to compile. 解决方法: 在app ...

  7. npm run build 打包报错primordials is not defined的解决方法

    npm run build 打包报错primordials is not defined的解决方法 D:\uniapp项目\huishua_web_agent>npm run build> ...

  8. 打包报错:Generate Signed APK: Errors while building APK. You can find the errors in the ‘Messages‘ view.

    AndroidStudio打包报错:Generate Signed Ao打包报错 can find the errors in the 'Messages' view. AndroidStudio打包 ...

  9. Android运行时候报错:android.view.InflateException: Binary XML file line #19: Binary XML file lin

    Android运行时候报错:android.view.InflateException: Binary XML file line #19: Binary XML file lin 这个问题自己大致在 ...

最新文章

  1. js回调与异步加载的用法
  2. Abp v0.18.0 新版本: MVC Module 启动模板
  3. Yarn 监控 - 监控任务运行状态 (包括Spark,MR 所有在Yarn中运行的任务)
  4. Data Collection with Apache Flume(一)
  5. Asp.Net Core 轻松学-玩转配置文件
  6. 实现拷贝函数(strcpy)
  7. php算法求出一个数可以被分解成多少个_最全的小学干货:34个数学重难点公式(三)...
  8. 1.5.7、CDH 搭建Hadoop在安装之前(定制安装解决方案---配置单用户模式)
  9. 吴裕雄 python 机器学习——人工神经网络与原始感知机模型
  10. 阿里云的背后故事(希望别被关了)
  11. GitHub 披露宕机原因;谷歌前 AI 研究员被解雇后成立独立研究所;常用 Linux 桌面版排行榜出炉 | 开源日报
  12. atx motherboard layout ATX主板规格尺寸图
  13. 制作一键架设服务器,制作一键端方法
  14. 用迅雷打开php文件,迅雷下的php文件怎么打开啊?
  15. 知识点滴 - 项目阶段的定义
  16. 工作6年多的码农ios职位面试总结(续)
  17. [学习笔记] CDQ分治 从感性理解到彻底晕菜
  18. 候选码,主码,外码,主属性,非主属性
  19. Deep K-SVD Denoising
  20. 百度API的基本介绍和使用场景

热门文章

  1. Android视频背景,动态背景,Android用视频做背景的轻松实现
  2. 在线一键重装Win11系统步骤
  3. 什么是深度学习?kears简介,深度学习常用的三大模型,MLP(多层感知机),CNN(卷积神经网络),RNN(循环神经网络)
  4. WIN_DOS经典大全
  5. 不只卖电脑的联想,还有什么“新看点”?
  6. 稿定科技内推|稿定让设计更简单,只要你来,稿定就能给你无限可能
  7. Linux 配置网络案例
  8. 微软企业库(Microsoft Enterprise Library Data Access Block)
  9. 帮我写一个无数爱心滑落的html
  10. 解决网卡驱动不可用 Intel(R) Wireless-AC 9462黄色感叹号