New to gradle - eclipse is not detecting my imports from my dependencies

Hello, I’m needing to learn gradle for a personal project using google apis, but it’s a little hard to dive in head first. I watched some tutorials and copy pasted the google quickstart code so I could see how everything worked, but when I tried to move some code around, everything redlined.

Does anyone know where I went wrong? I was using intellij, but it didn’t show any real time errors, so I switched to eclipse only to see everything was red.
Thank you,