Mac平台与Windows平台下AndroidStudio增量升级

Android Studio增量升级什么情况下使用最合适呢?

比如现在的as版本是2.2版本,而你的as版本2.0版本,这个时候点Check For Updates就没有反应了,因为你已经2个有版本没升级了(版本跨度太大 ),所以这样就不能在线升级了。

 

重要的信息

  1. 谷歌更新地址:https://dl.google.com/android/studio/patches/updates.xml  

  2. 增加升级Jar下载:(windodws为win—linux为unix—mac os 为mac。对号入座

    1.  https://dl.google.com/android/studio/patches/AI-xx-xx-patch-win.jar

    2.    https://dl.google.com/android/studio/patches/AI-xx-xx-patch-mar.jar

    3.    https://dl.google.com/android/studio/patches/AI-xx-xx-patch-unix.jar

      1. 这里解释说明一下上面红色字体的意思前面的xx代表当前as的版本号,反之代表最新as的版本号。
  3. Jar安装命令:
      1. Windows —— java -classpath xxx.jar com.intellij.updater.Runner install .
      2. Mac OS —— java -classpath xxx.jar com.intellij.updater.Runner install Contents/

Windows下增量升级步骤

  1. 点击菜单栏的 Help -- > About,先查看查看当前的Build Number,版本号143.2790544

  2. 去https://dl.google.com/android/studio/patches/updates.xml下载Jar,最新版本号145.3276617

    1. 截图
  3. 拼装URL ———> https://dl.google.com/android/studio/patches/AI-xx-xx-patch-win.jar

    1. 下载增量Jar包 https://dl.google.com/android/studio/patches/AI-143.2790544-145.3276617-patch-win.jar(翻 墙)
  4. 进入Android Studio根目录

    1. 将下载的jar拷贝至Android Studio 的安装目录

    2. 执行命令:
      1.   java -classpath AI-143.2790544-145.3276617-patch-win.jar com.intellij.updater.Runner install .
         

  

Mac下增量升级步骤

  1. 与Windows平台下1-2-3步骤一样

    1. 下载增量Jar包 https://dl.google.com/android/studio/patches/AI-143.2790544-145.3276617-patch-mar.jar(翻 墙)
  2. 安装这个地方有点不同。

    1. 拷贝  

    2. 执行命令-安装

      1. java -classpath /Applications/AndroidStudio.app/Contents/AI-143.2790544-145.3276617-patch-mar.jar  com.intellij.updater.Runner install Contents/   

     3. 启动Android Studio安装完毕

 

 

 

原文地址:https://www.cnblogs.com/why168888/p/5922799.html