Only for OSX — Go to Applications Folder from finder and Simply rename Android Studio App Package name by removing space between.

Before : Android Studio After: AndroidStudio

There is no issue of permissions by default just the space was the problem.

Other solution:

sudo chmod 755 /Applications/Android\ Studio.app/Contents/gradle/gradle-4.1/bin/gradle