Gradle sync failed: Cause: error in opening zip file on mac

i am a new working with android studio and when i create a project on my mac it types that Gradle sync failed: Cause: error in opening zip file i have tried downloading gradle through commandline using homebrew and still nothing has changed i have try deleting the version i have a downloading updated versions and still nothing works what should i do