Gradle google dependency issues on android studio

I just started using Android Studio and whenever i create a fresh project it tells me that ![04%20PM|690x98](upload://5dERtRV30sO1inNrQ2VxJ9o2cwn.png) I tried refreshing the dependencies using ./gradlew build --refresh-dependencies. I am really not sure what to do at this point (I am also on a Mac.) Any help would be super appreciated

Unsure whether the image is visible so here is the error What went wrong:
A problem occurred configuring project ‘:app’.

Failed to notify project evaluation listener.;Ljava/lang/Object;)V