Android build fails - too many files?

Building of my Android app fails with the following error:

Task :app:packageDebug FAILED

Execution failed for task ‘:app:packageDebug’.

A failure occurred while executing$IncrementalSplitterRunnable
Zip64 required but forbidden (#entries=68889, cd=(offset=323,842,447, size=8,441,701))

I searched through the posts for information on enabling the zip64 option in build.gradle for my Android Java app.

I did find a reference to zip64 configuration in this forum conversation from 2016

However, simply following the suggestion in the post causes build.gradle to fail

I added the shadowJar plugin to my app following the instructions in
(for legacy plugin app)

It did not seem to make any difference as the documentation made no reference (that I could find) to the zip64 option. And, here I could be mistakenly identify the shwdowJar element with the ShadowJar plugin.

At this point, I am stuck.

I am using
Android Studio ArcticFox 2020.3.1 Patch 2
Gradle 7.2
Android Gradle plugin 7.0.2

I hope someone can help me how to resolve this problem.


Alex Donnini