解决Android Studio更新错误
2015-11-28 22:04
871 查看
在Google I/O 13里,Google推出了Android Studio。本来这个东西还是挺好的,但是bug满天飞,大部分人尝试装了一下后连编译都过不了,各种解释不通的错误。除了花大量时间搜stack
overflow找临时解决办法外,最靠谱的就是等这个工具升级了。
可是由于google在国内的路由可能配置有点问题,每次点Check for update都会出现"Connection failed. Please check your network connection and try again." 这不是一个大坑吗?下面是解决办法。
Win版修改\bin\studio.exe.vmoptions,添加两行
-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
-Didea.patches.url=http://dl.google.com/android/studio/patches/
Mac和Linux版可以直接修改环境变量
$ bin/studio"$ export REQUIRED_JVM_ARGS="-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml -Didea.patches.url=http://dl.google.com/android/studio/patches/"
====================================================
It fails to connect when updating Android Studio in the Chinese network. Here is the solution:
For Windows version, append the following two lines to the file "\bin\studio.exe.vmoptions"
-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
-Didea.patches.url=http://dl.google.com/android/studio/patches/
For Mac OSX or Linux versions, directly modify the environment variables
$ export REQUIRED_JVM_ARGS="-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml -Didea.patches.url=http://dl.google.com/android/studio/patches/"
$ bin/studio
Reference:
https://code.google.com/p/android/issues/detail?id=56068
相关文章推荐
- Adnroid Studio Gradle 多渠道打包
- AsyncTask使用
- AndroidStudio创建TV-APP,出现Error:(28, 13) Failed to resolve: com.squareup.picasso:picasso:2.5.0 的解决
- 教你如何不翻墙就可以快速更新AndroidSDK Manager中的内容
- Android Studio汉化版安装说明
- 关于AndroidStudio的下载安装问题
- AndroidStudio 无法找到有效的JVM
- 如何用AndroidStudio导入github项目
- android studio项目在模拟器运行显示中文乱码
- 第一次混淆打包
- AndroidStudio使用备忘:报错finished with non-zero exit value 2
- AndroidStudio 取消启动时打开上次工程
- UIAutomator在AndroidStudio中的使用
- 改变Android Studio的Android SDK位置(笨方法)
- 改变Android Studio的Android SDK位置(全局)
- Android StudioでAndroidAnnotations3.0.1を使う方法
- Android studio
- eclipse & as 项目编码修改
- Subversion command line client version is too old , bin\sendrpt.exe not found
- android studio 1.1.0 添加jar包方法