Execution failed for task ':app:buildReleasePreBundle'., Required array size too large

UATHelper: Packaging (Android (ETC2)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ETC2)): * What went wrong:
UATHelper: Packaging (Android (ETC2)): Execution failed for task ‘:app:buildReleasePreBundle’.
UATHelper: Packaging (Android (ETC2)): > Required array size too large
UATHelper: Packaging (Android (ETC2)): * Try:
UATHelper: Packaging (Android (ETC2)): 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.
UATHelper: Packaging (Android (ETC2)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ETC2)): BUILD FAILED in 1m 45s

Any help in solving this issue please?

I have a similar issue:

UATHelper: Packaging (Android (ASTC)): Execution failed for task ‘:app:compressDebugAssets’.
UATHelper: Packaging (Android (ASTC)): > A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
UATHelper: Packaging (Android (ASTC)): > Required array size too large
UATHelper: Packaging (Android (ASTC)): Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
UATHelper: Packaging (Android (ASTC)): You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
UATHelper: Packaging (Android (ASTC)): * Try:
UATHelper: Packaging (Android (ASTC)): > Run with --stacktrace option to get the stack trace.
UATHelper: Packaging (Android (ASTC)): > Run with --info or --debug option to get more log output.
UATHelper: Packaging (Android (ASTC)): > Run with --scan to get full insights.
UATHelper: Packaging (Android (ASTC)): See Command-Line Interface
UATHelper: Packaging (Android (ASTC)): 48 actionable tasks: 2 executed, 46 up-to-date
UATHelper: Packaging (Android (ASTC)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ASTC)): BUILD FAILED in 20s

I haven’t found a solution