Cannot invoke method repositories() on null object

Greetings Guys

I have this problem trying to sync a project with Android Studio that uses Gradle. Im not sure where to look at since it seems like is related to the build.gradle file, can you please help me start debugging it.

Thank u!