Gradle, the build automation tool for multi-language software development that is widely used for Android is notoriously difficult to use. To help, here's a YouTube playlist on "Understanding Gradle" that is straight to the point.
It could also be given the title "How to make Gradle less dreadful". In Love It or Hate It, Gradle Reaches Version 7.0 I put forward some reasons why Gradle is not the most user-friendly tool:
cryptic syntax, contradictory terms (see compile versus implementation) and peculiar blocks of elements.
Furthermore Gradle is a tool that:
always stirs arguments among developers
and according to Bruce Eckel, author of Thinking in Java, Thinking in C++ and Atomic Kotlin amongst others:
To do anything in Gradle you have to know everything