(新手)Android studio 安装:错误和解决方法(updated on 200406)

错误1:unable to access android sdk add-on list

     方法1:电脑上有Android SDK,选择cancel,再选择本地SDK的目录。在Android Studio的安装目录下,找到\bin\idea.properties,在尾行添加disable.android.first.run=true,即初次启动不检测SDK。

    方法2:修改hosts文件。在网站中检测网址:dl.google.com,选出响应时间较短的IP(假设为203.208.50.167),追加以下内容:

203.208.50.167 dl.google.com
203.208.50.167 dl.l.google.com
203.208.50.167 dl-ssl.google.com

Windows:C:\Windows\System32\drivers\etc\hosts

Linux:/etc/hosts。通过vim、gedit来编辑。如果是deepin,命令为:sudo dedit /etc/hosts.

错误2:Unknown host 'd29vzk4ow07wi7.cloudfront.net'. You may need to adjust the proxy settings in Gradle.

    方法:在Project/build.gradle中配置:

maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}

 

(新手)Android studio 安装:错误和解决方法(updated on 200406)_第1张图片

             

你可能感兴趣的:(Android,studio)