How to gradle a apk when it’s size is more than 4gb??
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
- What went wrong:
Execution failed for task ‘:launcher:compressReleaseAssets’.
A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
Required array size too large
- 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.
==============================================================================
2: Task failed with an exception.
- What went wrong:
Execution failed for task ‘:unityLibrary:bundleReleaseLocalLintAar’.
archive’s size exceeds the limit of 4GByte.
To build this archive, please enable the zip64 extension.
See: Zip - Gradle DSL Version 7.2
-
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.
============================================================================== -
Get more help at https://help.gradle.org
BUILD FAILED in 24s
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)