Android Studio 離線升級科普

來源:互聯網
上載者:User

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 ."

注意最後的 “.” 安裝到目前的目錄

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.