Android build fails if StreamingAssets folder is over 4GB

Hi, I’m using a lot of AssetBundles in my project and they are located in the StreamingAssets folder - a few hundred files ranging from a few kB to a few hundreds of MB, for a total of 9GB. In any moment during runtime, there are only a few of them loaded to avoid memory overuse.
The app is working fine when built for Windows. However, when I try to build for Android, the build process fails:

See: https://docs.gradle.org/7.2/dsl/org.gradle.api.tasks.bundling.Zip.html#org.gradle.api.tasks.bundling.Zip:zip64```

Is there any way that I could possibly build the data to the app?

Split apk and obb could work

I think you should use asset packs for your app data, not streaming assets. Or put asset bundles online and download them.
With so many assets it is recommended to limit initially to just he assets that are required and download the rest on demand.

3 Likes