title: Android Studio 1.2.2 - Gradle Build Permission Denied
body: <p>I just get "Permission Denied" issue after reinstalling android studio 1.2.2 on my MAC OS X Yosemite 10.10.3.</p>
  
  <p>I can build the android code in terminal by adding <code>sudo</code> in the beginning of gradle command. e.g. <code>sudo gradle build</code> or <code>sudo ./gradlew build</code>. However, even though <strong>I have successfully built</strong> the android app using terminal,it does seem annoying to me that I can't use the android studio as the yellow warning pop up to me (see screenshots)</p>
  
  <p><img src="https://i.stack.imgur.com/4641C.png" alt="Yellow Warning Pop-up in Android Studio"></p>
  
  <p>I have tried running the android Studio in root mode, but no luck.</p>
  
  <pre><code>sudo /Applications/Android Studio.app/Contents/MacOS/studio
  </code></pre>
  
  <p>In addition, I have also tried the solution by providing the executable mode for gradle files. I have added <code>chmod +x gradlew</code> in project directory (as you can see in the screenshot) and in studio directory at <code>/Applications/Android Studio.app/Contents/gradle/gradle-2.2.1</code></p>
  
  <p><img src="https://i.stack.imgur.com/HfefA.png" alt="list of files## Heading ##"></p>
  
  <p>Does anyone have any idea how to fix the gradle permission denied in Android Studio 1.2.2?</p>