You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason Godot cannot align the Android APK properly when you have over 32k pngs in your game, which also causes the ApkSigner to fail as well.
Godot export:
Project export for platform: Android - Failed.
[Code Signing]: 'apksigner' returned with error #1
[Code Signing]: output:
Exception in thread "main" com.android.apksig.apk.ApkFormatException: Unused space at the end of ZIP Central Directory: 182827 bytes starting at file offset 98106766
at com.android.apksig.ApkSigner.parseZipCentralDirectory(ApkSigner.java:944)
at com.android.apksig.ApkSigner.sign(ApkSigner.java:277)
at com.android.apksig.ApkSigner.sign(ApkSigner.java:232)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:414)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:92)
zipalign -c -v 4 outputs this:
Verifying alignment of PRNeo.apk (4)...
Unable to open 'PRNeo.apk' for verification
Steps to reproduce
Create an empty project, then add 32.000(or more) png files to your project.
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered:
Tested versions
Reproducible in: 4.4.1.stable
System information
Windows 11 - Godot 4.4.1.stable - Mobile/Compatiblity - NVIDIA geforce RTX 3060
Issue description
For some reason Godot cannot align the Android APK properly when you have over 32k pngs in your game, which also causes the ApkSigner to fail as well.
Godot export:
Project export for platform: Android - Failed.
[Code Signing]: 'apksigner' returned with error #1
[Code Signing]: output:
Exception in thread "main" com.android.apksig.apk.ApkFormatException: Unused space at the end of ZIP Central Directory: 182827 bytes starting at file offset 98106766
at com.android.apksig.ApkSigner.parseZipCentralDirectory(ApkSigner.java:944)
at com.android.apksig.ApkSigner.sign(ApkSigner.java:277)
at com.android.apksig.ApkSigner.sign(ApkSigner.java:232)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:414)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:92)
zipalign -c -v 4 outputs this:
Verifying alignment of PRNeo.apk (4)...
Unable to open 'PRNeo.apk' for verification
Steps to reproduce
Create an empty project, then add 32.000(or more) png files to your project.
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: