I wanted to update my android studio from v 1.2.2 (build 141.1980579) to v 1.3.0 (build 141.2117773) through update mechanism of Android Studio but was facing problems due to network breakdown. So I manually download the jar file (through download manager) and followed the below procedures:
Downloaded jar file: AI-141.1980579-141.2117773-patch-win.jar OS platform: Windows 7 (build 7601) Location of Android Studio: D:\Android Studio Location of downloaded jar file: D:\Downloads
I opened up a command window in D:\Downloads and entered the following command line:
java -classpath AI-141.1980579-141.2117773-patch-win.jar com.intellij.updater.Runner install "D:\Android Studio"
Execution cum update started but after completion, update was not a success. How to manually update the same? Any suggestion/solution.
Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.
Android Studio provides access to two configuration files through the Help menu: studio. vmoptions : Customize options for Studio's Java Virtual Machine (JVM), such as heap size and cache size. Note that on Linux machines this file may be named studio64. vmoptions , depending on your version of Android Studio.
I have bad internet connection so i had to download the AI-**-patch-win.jar externally. (to get the Download url, start the update process and let it fail, it will pop up a error with the url)
Steps :
AI-**-patch-win.jar
start CMD with Admin rights or else it wont work.
enter :
java -Xmx1024m -classpath AI-your-file-patch-win.jar com.intellij.updater.Runner install "C:\Program Files\Android\Android Studio"
Java update window will open and let it do its job.
if any error :
in my case, after step 4. it gave me error that some files were modified.
to solve this i had to open my old Android Studio setup file (930mb) in 7zip,
and look for those file which were in conflict -> extract those file -> paste them in the
C:\Program Files\Android\Android Studio...\your conflict file..\,
then again follow all this steps. :)
UPDATE
to get download link :
link for update versions :
https://dl.google.com/android/studio/patches/updates.xml
Okay, i used to have the same problem as you but this helped me fix it. Just immediately after the '-classpath', you have to specify the location of the patch file. Forinstance, C:\Users\USERNAME\Downloads\AI-141.1980579-141.2117773-patch-win.jar and that should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With