How to update Android Studio using a .jar file?

I want to upgrade my Android studio from v0.1 to v0.2.5 and download the .jar file from here . But I do not know what I can do with this!

Can someone help me?

+4
source share
2 answers

Note. An update with patch fixes is missing from 0.1.9 to 0.2. To upgrade from Android Studio 0.1.x to 0.2.x, you must install the new Android Studio package from this page. The reason for this is that we have made changes to the SDK, which includes a pre-configured local Maven repository that can serve the v4 support library and which is required to create new projects.

From http://developer.android.com/sdk/installing/studio.html#Revisions

So why not download the new version of Android Studio?

Refresh . If you can’t upgrade the network. Try the following:

java -classpath / path / to / AI-130.687321-130.692269-patch-unix.jar com.intellij.updater.Runner install $ PWD

From https://code.google.com/p/android/issues/detail?id=56068

+4
source

Starting Windows 8 (as a local administrator) I needed a patch from the latest version to 0.9.2. However, I encountered the “inability to delete files” problem when trying to install the patch directly from Android Studio (it works as an administrator). After you downloaded 100 MEG (Aussie slow Internet) twice, I needed something smarter. The following is what worked for me (your mileage may vary):

  • I found the JAR download in the C: \ Users \ MYUSERNAME \ AppData \ Local \ Temp directory. It had a strange extension, but obviously had a patch file from the file date / time stamp.
  • So, I copied this file to a good directory (c: \ temp), renaming the extension to ".jar"
  • My Android Studio installation is located in c: \ program files (x86) \ Android \ android-studio - so using Windows Explorer I gave the user "everyone" full control over the folder and all subfolders. Yes, I know this is bad practice on a prod server, but listen to me.
  • I open a command window in c: \ temp and enter the following command line (where the name of the .jar file is the JAR file that I found and renamed):

    java -classpath jetbrains.patch.jar.androidstudio.jar install "c: \ program files (x86) \ Android \ android-studio"

  • This is the beginning of a patch that has completed successfully. Giving “everyone” full control meant that the delete operations were completed in order — at least that's my belief. I delete all users after the patch is completed (I'm sure you thought that I would forget to do it!).

  • Launched Android Studio and checked the current version - PHEW!

Good luck with the manual fix in Windows 8. I really like Android Studio, but, of course, this is an inconvenient side in this regard.

+2
source

Source: https://habr.com/ru/post/1499072/


All Articles