Unity打Android包超过4G时-会打包失败
2026/01
23
19:01
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:packageRelease'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> Zip64 forbidden but required in entry assets/data.bnk size=2057689, csize=2057689, cdloc=(offset=4,295,269,327, size=2,057,762), loc=(offset=4,295,269,400, size=2,057,689)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
处理1:方法为将StreamingAssets 中的资产移到增量包中
处理2:自定义Custom Gradle Template,添加zip64 true
CopyRights: The Post by BY-NC-SA For Authorization,Original If Not Noted,Reprint Please Indicate From 老刘@开发笔记
Post Link: Unity打Android包超过4G时-会打包失败
Post Link: Unity打Android包超过4G时-会打包失败