(EXT) http://www.cnblogs.com/daemon369/p/3266264.html
Android Studio is a new Android development environment based on IntelliJ idea released by Google for Android developers at the Google I/O 2013 developer Conference this May.
Official website: http://developer.android.com/sdk/installing/studio.html.
The current (2013-09-25) release of the full installation package version is: 130.737825, can be upgraded to version by patch Patch: 0.2.9 (132.830170). Update information can be viewed at: Recent Changes and: Https://dl.google.com/android/studio/patches/updates.xml.
You can download the latest full installation package from Google on the official website, and then update Android Studio via the menu: Help-and Check for update. Unfortunately, the update URL for Android Studio dl-sdk.appspot.com is blocked, so you will likely see the following interface:
The conventional approach is blocked and therefore needs to be upgraded by other means.
We can use VPN or some agent software to update Android Studio. I choose Goagent agent software to upgrade. After the installation configuration goagent, start, display as follows:
Then, in Android Studio, select HTTP Proxy---HTTP, Settings, Files, and then enter in Host name: 127.0.0.1, in Port Nu Input in Mber: 8087. Select Ok, the agent is set to complete. Then check Update again, and still fail.
Google to the following workaround: HTTPS://CODE.GOOGLE.COM/P/ANDROID/ISSUES/DETAIL?ID=56068#C3.
1-if You can access the Appspot URL via a browser, you should is able to does it via Studio directly by using File>setti Ngs>http Proxy. Configure your SOCKS proxy there and use the "Check connection" once, then try Help>check for updates.2-if the issue I s with the Appspot redirector, you can bypass it by setting a environment variable before invoking studio from the Comman D line:$ 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/studioonce you start studio, does step 1:go to file& Gt;settings>http Proxy, set your SOCKS proxy, check the connection, then use Help>check for updates.3-if that still Fails, you can download the patch and apply it manually. The patch is located athttp://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 the that file:$ CD android-studio-directory$ java-classpath/path/to/ai-130.687321-130.692269-patch-unix.jar com. Intellij.updater.Runner Install $PWD
1. If you can use the browser to access the URL dl-sdk.appspot.com, then you can configure the proxy through File>settings>http proxy, and then through Help>check for updates try to more New.
2. If the Appspot URL is redirected, you can set the environment variable and then use the proxy (I'm using Ubuntu):
$ 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/"
$ CD Android-studio
$ bin/studio.sh
Then use Step 1 in Android studio to update.
You can also 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/"before adding the assignment to All_jvm_args in the bin/studio.sh script file, This allows you to execute the studio.sh script directly
3. If the update still fails, you can manually download the update patch patch,patch through the URL download:
Http://dl.google.com/android/studio/patches/AI-130.737825-132.830170-patch-unix.jar, whose naming rules are:
linux:ai-$FROM-$TO-patch-unix.jar
windows:ai-$FROM-$TO-patch-win.jar
macos:ai-$FROM-$TO-patch-mac.jar
The two version number, the previous from is your current version number, and the last to is the version number to upgrade to.
After downloading the file locally, place it in the Android studio program root directory:
$ CD Android-studio
$ java-classpath Ai-130.737825-132.830170-patch-win.jar com.intellij.updater.Runner install.
I used step 2 to cooperate with the Goagent update successfully. Windows using Goagent did not succeed, seemingly the issue of goagent certificates. You can download the patch update directly using Step 3.
Wrote an updated script, written in Python, that supports the Linux,windows,macos operating system. Because did not study python, the code is the use of Google out of the functions of the patchwork, the need to download and modify their own.
https://github.com/daemon369/Demo/tree/master/20130830
Reference:
Https://code.google.com/p/android/issues/detail?id=56068#c3
Android Studio Update