title: Android Studio Error on Mac
body: <p>Just installed Android Studio 0.2.2 on my mac with osx 10.8.4 and opend new project tried to compile it and got this:`Gradle: Execution failed for task ':MyApplication:dexDebug'.</p>
  
  <blockquote>
    <p>Failed to run command:
        /Applications/Android Studio.app/sdk/build-tools/18.0.0/dx --dex --output /Users/shimon_wi/AndroidStudioProjects/MyApplicationProject/MyApplication/build/libs/MyApplication-debug.dex /Users/shimon_wi/AndroidStudioProjects/MyApplicationProject/MyApplication/build/classes/debug /Users/shimon_wi/AndroidStudioProjects/MyApplicationProject/MyApplication/build/dependency-cache/debug /Applications/Android Studio.app/sdk/extras/android/m2repository/com/android/support/support-v4/13.0.0/support-v4-13.0.0.jar
      Error Code:
        1
      Output:
        /Applications/Android Studio.app/sdk/build-tools/18.0.0/dx: line 31: dirname: No such file or directory
        /Applications/Android Studio.app/sdk/build-tools/18.0.0/dx: line 34: basename: No such file or directory</p>
  </blockquote>
  
  <pre><code>/Applications/Android Studio.app/sdk/build-tools/18.0.0/dx: line 48: dirname: No such file or directory
  /Applications/Android Studio.app/sdk/build-tools/18.0.0/dx: line 52: basename: No such file or directory`
  </code></pre>
  
  <p>does any one know how to overcome this?</p>