--------------------------------------------------Start--------------------------------------------------
ExePath = C:\Users\Administrator\Desktop\SaveToGame\SaveToGame.exe
Resources = C:\Users\Administrator\Desktop\SaveToGame\Resources
--------------------------------------------------
Signing file
--------------------------------------------------
Exception in thread "main" com.android.apksig.apk.ApkFormatException: Malformed ZIP entry: lib/x86/libcpuid.so
at com.android.apksig.ApkSigner.sign(ApkSigner.java:333)
at com.android.apksig.ApkSigner.sign(ApkSigner.java:190)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:330)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:89)
Caused by: com.android.apksig.zip.ZipFormatException: Data Descriptor of lib/x86/libcpuid.so overlaps with Central Directory. Data Descriptor end: 1452545, CD start: 1452557
at com.android.apksig.internal.zip.LocalFileRecord.getRecord(LocalFileRecord.java:272)
at com.android.apksig.internal.zip.LocalFileRecord.getRecord(LocalFileRecord.java:127)
at com.android.apksig.ApkSigner.sign(ApkSigner.java:330)
... 3 more
All done
Path to the file: C:\Users\Administrator\Desktop\CPU Z_v1.29_apkpure.com_signed.apk
In some APKs, it fail to sign APK file because of Malformed ZIP entry error. I don't know why Signing APK works fine on Apk easy tool
You can use CPU-Z to test https://apkpure.com/cpu-z/com.cpuid.cpu_z