So I just installed Android Studio again after a long time and it asked me to configure the proxy, so I did. I tested the connection and it worked.
Then it asked me
try the latest version of gradle build tools in build.gradle(Module:app)
build.gradle(Module:app)
here a screenshot