2015-07-11 50 views
0

我使用的是Mac OS X约塞米蒂10.10.3 JDK版本1.7.0Android Studio中未按规定设置在Mac OS X

这是从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 

回答

0

显然,此问题的解决方法是使用sudo运行。

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

试过了,但它仍然给了我相同的错误。 – lordB8r

0

从苹果支持页面使用JDK 6 for OS X更新2014-001并尝试安装 然后将Android SDK设置为路径 再试一次

+0

我该如何获得android设置向导来检测该版本?我已经安装了。 – Mox

+0

将java和android sdk添加到PATH –

+0

Android studio轻松地检测到java 6不费力 –