手机打包包体太大

ue5.6 测试官方的第三人称模板,手机打包大小有700多M

修改内容:Project Settings | Package game data inside .apk = True 其它保持默认配置

重现步骤

手机上5.4 打包的时候包体大小1.09G, 相同内容升级到5.6 版本包体大小1.6G. (开发版本)

测试官方ue5.6的第三人称模板,手机打包大小有700多M,是否官方有默认配置需要关闭

使用reade1f 基本确认是debuginfo问题, 可以在build.cs中添加bDisableDebugInfo=False可以减少包体。是否需要在shipping包中关闭?

Hi Yanhgui,

When building the Third Person 5.4 template against stock UE 5.4, with the same settings, I am seeing a final APK size of 413MB (Development) and 340MB (Shipping). When transitioning the project from UE 5.4 to 5.6 and repackaging, I then see 189MB (Development) and 143MB (Shipping), so an overall reduction, opposite to what you are observing.

When building the Third Person 5.6 template against stock UE 5.6, and Package game data inside .apk = True, I am seeing a final APK size of 155MB (Development) and 108MB (Shipping). Are there any other modifications to the project happening locally on your end? I am also seeing the final .so in the APK with debug symbols stripped by default without need to modify Build.cs.

Best regards.

Thanks for the answer!

I used 5.4 and 5.6 to generate the apk for the third-person example respectively, and the libunreal.so block information was concentrated in debuginfo. What is the reason for this?[Image Removed]

Hi Yanghui,

Unfortunately, the immage attachments are not appearing in the last response.

However, on this end, if I extract libUnreal.so from the output APK of the build, and run $NDKROOT/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-objdump --syms libUnreal.so, no debug info appears to be present.

Can you confirm AGP/Gradle version you are using in case it may be related to that?

Best regards.