因为众说周知的缘由,咱们有时没法正确的更新咱们的Android Studio版本,虽然以前我能够经过修改studio.exe.vmoptions里面的选项,能够达到更新,可是不知道何时,这种方法已经没法生效了,万般无奈,我从网络上找到了一种新的方法,离线更新。下面就对离线更新的方法,作一下阐述。html
获取到你的当前版本号:java
获取方法:Help->About,获取后以下图所示:android
而后获取最新的版本编号:shell
打开网页https://dl.google.com/android/studio/patches/updates.xml网络
在最上面找到以下xml代码:ui
<products><product name="Android Studio"><code>AI</code><channel feedback="https://code.google.com/p/android/issues/entry?template=Android+Studio+bug" id="AI-1-eap" majorVersion="1" name="Android Studio updates" status="eap" url="http://tools.android.com/recent"><build number="141.2112779" version="1.3 RC 4"><message><html> A new Android Studio 1.3 RC 4 is available in the canary channel.<p/> Canary builds are the bleeding edge, released about weekly. While these builds do get tested,<br/> they are still subject to bugs, as we want people to see what's new as soon as possible.<br/><p/> For slightly more predictable builds, use <b>Settings | Updates</b> and select the <b>Dev Channel</b>.</html></message>
从上面的代码中咱们能够,发现最新的版本号为:google
141.2112779
4.下载离线升级包:
url
下载的网址url为:spa
https://dl.google.com/android/studio/patches/AI-$FROM-$TO-patch-win.ja
其中code
$FROM:你的当前版本号,好比个人当前版本为:141.2095413
$TO:就是你欲升级的版本号,好比我此处要升级的版本号为:141.2112779
而后就能够下载了。
下载后把文件拷贝到Android Studio的根目录下。
而后在当前目录打开cmd。执行如下命令:
java -classpath AI-130.737825-132.843336-patch-win.jar com.intellij.updater.Runner install .
注意最后有一个“.”符号,意思就是当前目录。
至此你已经成功升级了你的Android Studio。Enjoy it!