刚刚在我的带有 osx 10.8.4 的 Mac 上安装了 Android Studio 0.2.2 并打开了新项目尝试编译它并得到了这个:`Gradle: Execution failed for task ':MyApplication:dexDebug'。
运行命令失败:/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 错误代码:1 输出:/Applications/Android Studio.app/sdk/build-tools/18.0.0/dx: line 31:dirname:没有这样的文件或目录/Applications/Android Studio.app/sdk/build-tools/18.0.0/dx:第34行:basename:没有这样的文件或目录
/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`
有谁知道如何克服这个?