因爲衆說周知的緣由,咱們有時沒法正確的更新咱們的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!