Android Studio 离线升级

分享到:

Android Studio 更新的频率还是挺高的详见 http://tools.android.com/recent

但是发布说明里写着

“If you are already running Android Studio, just restart it, or manually check for updates via Help > Check for Update... (on OSX, look in the Android Studio menu). This will download and install a small patch rather than download a full IDE image. We are not posting full installers for each weekly update. If you do not already have Android Studio, install the latest full install from http://developer.android.com/sdk/installing/studio.html#download When you run that version, it will check for updates and upgrade itself via the patch mechanism.”

当你在软件中执行upadate时,会发现网络是连不通的,why?有人提交bug。。。https://code.google.com/p/android/issues/detail?id=56068

“We can't update this patch because the site: dl-sdk.appspot.com has been banned by our damn government. If I use a sock proxy, I still can't get the update. After request http://dl.google.com/android/studio/patches/updates.xml?uid=cc68c56e-13c7-4717-9253-194d2289aa33&os=Linux+3.0.0-30-generic&eap&build=AI-130.677228 client was redirect to dl.google.com/android/studio/patches/updates.xml?uid=cc68c56e-13c7-4717-9253-194d2289aa33&os=Linux+3.0.0-30-generic&eap&build=AI-130.677228”

还好android项目成员有回复方案:

“3- If that still fails, you can download the patch and apply it manually. The patch is located at http://dl.google.com/android/studio/patches/AI-130.687321-130.692269-patch-unix.jar (syntax is "AI-$FROM-$TO-patch-unix.jar", where you get the from/to using the updates.xml file) Once you have that file: $ cd android-studio-directory $ java -classpath /path/to/AI-130.687321-130.692269-patch-unix.jar com.intellij.updater.Runner install $PWD”

对于windows版本:

1. 从http://tools.android.com/recent 找最新版本号如 0.1.8 (Build number: 130.725679)或者从http://dl.google.com/android/studio/patches/updates.xml找最新版本号

2. 下载补丁http://dl.google.com/android/studio/patches/AI-130.721168-130.725679-patch-win.jar

"(syntax is "AI-$FROM-$TO-patch-unix.jar", where you get the from/to using the updates.xml file)"

windows 对应为-win.jar

3. 进入android studio 目录X:\Android\android-studio安装

"java -classpath AI-130.721168-130.725679-patch-win.jar com.intellij.updater.Runner install ."

注意最后的 “.” 安装到当前目录

昵    称:
验证码:

相关文档:

Android基础知识
Android组件
Android控件
Android实例