问题:
导入项目时,报Error:failed to find Build Tools revision 22.0.1错误。
当点击更新时,会出现Connection failed. Please check your network connection and try again问题。
解决方案:
1.修改安装目录下bin\studio.exe.vmoptions文件,如E:\Android\android-studio\bin\studio.exe.vmoptions
添加内容:
-Djava.net.preferIPv4Stack=true
-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
-Didea.patches.url=http://dl.google.com/android/studio/patches/
2.在C:\Windows\System32\drivers\etc
添加内容:
74.125.237.1 dl-ssl.google.com
重新启动..就可以在线更新了.