Please do not split topics across several threads.
This makes following the conversation in the threads view very hard as the context of the other messages is missing.
If you have additional information either edit the original message or post to its thread.
Regarding the problem, while trying to compress your assets, you get an error that some required array size is too large. That's not something from Gradle, but from the Android Gradle Plugin. You might better ask in an Android community about it if none here can help and Google doesn't know.
Regarding the addendum question, usually you just use the
gradlew
scripts included with a project's sources to run the Gradle build. But as you do not use Gradle, but some wrapper around that probably generates and executes the build, you have to ask that tool how to do it properly.