Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Studio无法在Mac OS X上设置_Android_Macos - Fatal编程技术网

Android Studio无法在Mac OS X上设置

Android Studio无法在Mac OS X上设置,android,macos,Android,Macos,我使用的是Mac OS X yosemite 10.10.3 JDK版本1.7.0 这是android studio设置向导中的错误 Refresh Sources: Failed to fetch URL http://dl.google.com/android/repository/addons_list-2.xml, reason: File not found Fetched Add-ons List successfully Refresh Sources Failed

我使用的是Mac OS X yosemite 10.10.3 JDK版本1.7.0

这是android studio设置向导中的错误

Refresh Sources:
  Failed to fetch URL http://dl.google.com/android/repository/addons_list-2.xml, reason: File not found
  Fetched Add-ons List successfully
  Refresh Sources
  Failed to fetch URL http://dl.google.com/android/repository/repository-10.xml, reason: File not found
Refresh Sources:
  Failed to fetch URL http://dl.google.com/android/repository/repository-10.xml, reason: File not found
There is nothing to install or update.
platform-tools, extra-android-m2repository and 2 more SDK components were not installed

从apple支持页面使用JDK 6 for OS X update 2014-001并尝试安装 然后将androidsdk设置为path
重试显然,此问题的解决方法是使用sudo运行

sudo "/Applications/Android Studio.app/Contents/MacOS/studio"

我怎样才能让安卓安装向导检测这个版本?我已经安装了它。将java和android sdk添加到PATHAndroid studio中可以轻松地检测java 6,无需付出太多努力