1. Finder里, shift+command+g, 进入如下文件夹

/Applications/Android Studio.app/Contents/bin/studio.vmoptions

2. 打开此文件,用文本编辑器或者Vim

3.在最后一行添加如下内容:

-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/


4.存盘退出


更多相关文章

  1. 为什么要学习 Markdown?究竟有什么用?
  2. Android(安卓)Studio打包APK是遇到的一些问题(Lint检查的错误)
  3. ubuntu gradle编译总结
  4. create new Android(安卓)Virtual Device: no system images ins
  5. android:text文字添加阴影效果
  6. Android(安卓)studio打包报错:Lint found fatal errors while ass
  7. Android(安卓)Studio 提示错误:No IDEA annotations attached to
  8. 搭建Android编译环境
  9. Eclipse导入Android项目的正确方法

随机推荐

  1. Android(安卓)通过 intent传值获得null
  2. Android(安卓)封装RecyclerView.Adapter,
  3. Android5.0 新特性学习总结
  4. Flutter String格式化
  5. Android(安卓)上网流量监控方法
  6. Android(安卓)布局中位置和大小单位相关
  7. android studio运行时提示All packages a
  8. 我的Android进阶之旅------>Android之Ani
  9. Android总结 - System UI Mode
  10. Android(安卓)SDK Manager 和 ADT 更新