How do I fix the "CommandInvokationFailure: Gradle build failed."

When trying to build both an APK or the App Bundle, I get 5 error messages (see image), including this one : “CommandInvokationFailure: Gradle build failed.”
I’ve been trying to fix this for days know, and I’m kind of getting desperate here.
Can anyone help, please? Android is far from being my specialty. Thanks people!