重打包资源报错解决
来源:互联网 发布:c语言求1到n阶乘的和 编辑:程序博客网 时间:2024/05/17 03:11
遇到的APK可以正常反编译,打包时会出现如下错误:
I: Using Apktool 2.1.1I: 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 fileW: ERROR: Failure processing PNG image res/drawable-hdpi-v4/btn_main_1_1.pngW: libpng error: Not a PNG fileW: ERROR: Failure processing PNG image res/drawable-xhdpi-v4/btn_main_1_1.pngW: libpng error: Not a PNG fileW: ERROR: Failure processing PNG image res/drawable-hdpi-v4/btn_main_1_2.pngW: libpng error: Not a PNG fileW: ERROR: Failure processing PNG image res/drawable-xhdpi-v4/btn_main_1_2.pngW: libpng error: Not a PNG fileW: ERROR: Failure processing PNG image res/drawable-hdpi-v4/btn_main_1_3.pngW: libpng error: Not a PNG fileW: ERROR: Failure processing PNG image res/drawable-xhdpi-v4/btn_main_1_3.pngW: libpng error: Not a PNG fileW: ERROR: Failure processing PNG image res/drawable-hdpi-v4/btn_main_1_4.pngW: libpng error: Not a PNG file
查看文件格式:
原来并不是png文件,将后缀名改为exif后便可重打包运行。
由于涉及到的png文件比较多,用下面这个命令可以批量修改:
grep "\.png" log.txt | awk '{fileName=substr($7,0,length($7)-3);system("mv "$7" "fileName".exif")}'
2 0
- 重打包资源报错解决
- Android重打包
- Android apk重打包
- apk反编译重打包
- apktool反编译,重打包
- 谈谈Android重打包--初语
- 谈谈Android重打包--雷区
- 谈谈Android重打包--架构
- npm包发布以及解决报错
- APK反编译、修改、重打包、签名
- apk重打包(不使用apktool)
- 如何不重打包调试Android应用
- apk重打包和签名(jarsigner)
- android开发 反编译 重打包 签名流程
- Apktool重打包Apk详细介绍
- 安卓apk反编译重打包
- Android APK反编译、重打包、重签名
- 解决flashDevelop发布的swf访问本地资源报错
- 阅读程序
- 说一说物理中的dynamics和kinetics
- React Ajax this.IsMounted() is not a function
- 实现文本框有个默认值
- 继承与派生——两个程序的比较 2
- 重打包资源报错解决
- php 日常函数
- 如何给自己各种帐号编一个安全又不会忘记的密码?
- bootStrapValidator
- CButtonST使用技巧
- Balanced Binary Tree 判断是否为平衡二叉树
- swift 调用 C语言库
- 阅读程序
- CSS3变形之2D变形