Install Android Studio updates offline

1. Online update
   When we update in Android Studio, because of the wall, it will not be able to update:


so either go to the official website to download the latest Android Studio installation package - but if you can't even detect the update, you can't access Android Developer official website. For example, I can go to Google's official website on the company network, but it is difficult to download the latest android studio. Fortunately, there is another "curve to save the country" method to update, which is to obtain the update offline package and then install it manually.

2. Manually install and update the offline package
There are several ways to update the update package. One is to download the update package backed up by other students on the Internet through search, and the other is to find the version information in the Android Studio Path list published by Google. The first method is simple, and the second method is described below. I also used the second method to successfully upgrade.

2.1 Get the latest version information
The historical version and the latest version information can be found on https://dl.google.com/android/studio/patches/updates.xml. For example, if I open the link now, the content accessed is as follows:


red Box 1 is my current version and red box 2 is the latest version.

Note: The current version is 1.5, and you can see the current build number on the welcome screen. Or you can also check it in settings.





At this point, write down the current version number and the latest version number: 141.2456560 and 143.2771856

2.2 Download the offline update package
We spliced ​​the URL of the offline package in the following way:
https://dl.google.com/android/studio/patches/AI-[ Current installed version number]-[target version to update]-patch-win.jar
        For example, if we obtain the offline package according to the version number we just screenshotted, the URL is:
https://dl.google.com/android/studio/patches/AI-141.2456560-143.2771856-patch-win.jar
and then we download and get This offline update jar package.

2.3 Offline update package installation
First, close all Android Studio tasks, and put the obtained jar update package in any directory except the Android Studio installation directory . Start the command line and enter the following command:


java -classpath D:\AI-141.2456560-143.2771856-patch-win.jar com.intellij.updater.Runner install .

Note that I entered this command in the installation directory of android studio, The update package is placed in the D:\ directory. The dot at the end of the command means install in the current directory.
Then press Enter to execute the command. At this time, a dialog box will pop up to show the specific progress of the installation: when



the entire installation process is completed, the dialog box will automatically close. The entire update installation process ends. At this time, we start Android Studio, and we can see that it has been updated to the latest version:


3. Possible problems with installation
3.1 The update package is placed in the installation directory of android studio.


Solution: Put the update package in the non-android studio installation directory.

3.2 If you open android studio during the update process,
if you do not close android studio before you perform the upgrade, the prompt box will also pop up, but the prompt content is not as shown in the figure above.

3.3 Select the corresponding solution
If a row in the solution column is update, you can click the row and click proceed in the lower right corner.


Original: http://www.th7.cn/Program/Android/201505/453825.shtml

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326862540&siteId=291194637