Tutorial Apktool - How to fix PNG error

AndnixSH

Security Detective
Original poster
Staff member
Modding-Team
Jun 27, 2017
1,866
111,701
1,213
Modding World
I got a strange PNG error when trying to compile

Code:
I: Using Apktool 2.5.0
I: Smaling smali folder into classes.dex...
I: Smaling smali_classes2 folder into classes2.dex...
I: Smaling smali_classes3 folder into classes3.dex...
I: Smaling smali_classes4 folder into classes4.dex...
I: Smaling smali_classes5 folder into classes5.dex...
I: Building resources...
W: libpng error: Not a PNG file
W: ERROR: Failure processing PNG image E:\APK Easy Tool\1-Decompiled APKs\gameexample\res\mipmap\ic_launcher_background.png
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1):
We can see an error occured on \gameexample\res\mipmap\ic_launcher_background.png

So we basically use any image editing software that support transparent like Photoshop, and re-save the image

Then it will successfully compile

Code:
I: Using Apktool 2.5.0
I: Smaling smali folder into classes.dex...
I: Smaling smali_classes2 folder into classes2.dex...
I: Smaling smali_classes3 folder into classes3.dex...
I: Smaling smali_classes4 folder into classes4.dex...
I: Smaling smali_classes5 folder into classes5.dex...
I: Building resources...
I: Copying libs... (/lib)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
 

About us

  • Welcome to platinmods.com! We are proud to present you the place which let's dreams come true! Focusing on quality and trust we have spend much time to build a gaming community fitting to your wishes and needs. Actually we offer you the finest MODs and Games of the Android section and we slowly expand to the iOS section as well. But games, Android MODs & iOS MODs are not the only things we can offer you. We have tutorials, tools, a very friendly, active and solid community which will help you with any problem you have =) Your happiness is our goal. We hope you enjoy!

Forum statistics

Threads
31,455
Messages
803,237
Members
2,072,368
Latest member
Pedroklk081123