Apktool回编译问题解决方案总结

前言

当我们利用apktool.jar回编译的时候可能会出现各种各样的错误,大部分都是资源文件上带来的错误,首先我们可以通过更新一下apktool.jar,这里是连接http://ibotpeaches.github.io/Apktool/。下面是我所遇到的相关问题及解决的方法:

1.对PNG文件解析失败

I: Using Apktool 2.0.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
libpng error: Not a PNG file
ERROR: Failure processing PNG image E:\逆向工具包\Android逆向\反编译\apktool2.2\.\xxxx\res\drawable-hdpi\
lbs_phone.png
libpng error: Not a PNG file
ERROR: Failure processing PNG image E:\逆向工具包\Android逆向\反编译\apktool2.2\.\xxxx\res\drawable-hdpi\
lbs_route.png
libpng error: Not a PNG file
ERROR: Failure processing PNG image E:\逆向工具包\Android逆向\反编译\apktool2.2\.\xxx\res\drawable-ldpi\
z_jq_hf5.png

这里只需要利用图片编辑工具或者windows自带的paint将图片另存为PNG图片就可以了.

I: Using Apktool 2.0.0
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
I: Copying libs...
I: Building apk file...
I: Copying unknown files/dir...
回编译成功

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值