Apktool回編譯問題解決方案總結
阿新 • • 發佈:2019-02-20
前言
當我們利用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...
回編譯成功