36

Every morning after start of Android Studio I became a dialog with information about new version of Android Studio (Beta). If I click on "Update & Restart" the patch will be downloaded (I see the progress bar and the growing file size). After that the Android Studio will be restarted but... the update is not installed! I can repeat it if I click on "Help/Check for update".

Has anybody an idea how to fix this?

P.S. Sure it is possible to download the full version and install it manually, but it would be so convenient to use automatically updates.

Valelik
  • 1,743
  • 2
  • 18
  • 22

4 Answers4

47

I've solved the problem. It is important how Android Studio was started. If I start it with a workspace parameter:

/android-studio/bin/studio.sh /<path_to_workspace>

then the update doesn't work.

So the solution is to start the Android Studio without any parameters.

Valelik
  • 1,743
  • 2
  • 18
  • 22
  • then how do u start the android studio normally – Ajay Venugopal Feb 01 '16 at 09:16
  • 3
    @AjayVenugopal, normally I start it with one of my desktop shortcuts which points to a particular workspace. – Valelik Feb 01 '16 at 14:05
  • 2
    Still the issue exists and Studio team hasn't fixed it yet. Great solution!! – Sankar V Mar 10 '16 at 07:07
  • Got the same issue when I run studio for update from root without params. It seems that update mechanism does not work at all. AS 2.0 beta 6, Ubuntu 14.04. – MainActivity Apr 01 '16 at 11:44
  • 1
    I used /opt/android-studio/bin/studio.sh Then I chose no workspace and then updated Android Studio successfully. Then I chose to import workspace and it worked... Thanks – M.Hefny Jun 05 '16 at 21:02
  • 2
    normally I run android studio with the following command with no workspace argument sudo ./home/username/android-studio/bin/studio.sh but the problem remains I am using ubuntu 16.04 – Mithun Sarker Shuvro Jun 11 '16 at 08:30
  • Same, I'm not providing any arguments and running Studio by `sudo ./studio.sh` but problem remains on Ubuntu. – getsadzeg Feb 04 '17 at 11:03
  • Was having this also: Android Studio would download the patch and close, but would fail to restart. Launching manually would reveal old version still present. The fix for me was to avoid using the launcher, and instead, run studio.sh from the command line. – Steve Mar 16 '17 at 08:57
  • Thanks, saved my day. – B.shruti Aug 01 '17 at 08:22
  • This still worked for me for 2.3.3 to 3.0. I just launched the 64 bit version in the Android Studio bin directory and it updated. – Brian S Nov 18 '17 at 20:45
7

I successfully updated my AS from 2.1.1 to 2.2.2, by the following way:

  1. File > Close Project. Close AS.

  2. restart AS, it will not open any project and show you a project list, but please don't open any project.

  3. wait for AS to popup a dialog to remind you there is a new version.

  4. click "update & restart".

  5. after restart, it may remind you import previous configuration files.

  6. import configuration, open a project, you will see the new version number.

hope this will help.

andy
  • 107
  • 1
  • 6
  • 3
    can you provide more explanation how will this solve the problem? – Zeina Nov 07 '16 at 05:36
  • It didn't do a thing, and why it will anyway? what the difference between hit the "update and restart" from a project or from the main window? – yshahak Feb 07 '17 at 05:57
  • Still relevant, closing the project was necessary for the upgrade from 3.5 to 3.6.1 to work. – ArtemGr Mar 31 '20 at 17:57
  • This worked for me upgrading from Arctic Fox to Bumblebee on two different computers. Great tip! – DannyP Feb 15 '22 at 16:17
2

I actually created the issue and it seems they fixed it in the latest release and you have to download it manually from here and update mechanism should be fine.

getsadzeg
  • 640
  • 3
  • 9
  • 19
1

Ah, it happened to me just now. In case you installed the Android Studio via JetBrain's Toolbox then the button is disabled if you start the AS manually. You need to close the AS and open the Toolbox and then update from there.

enter image description here

Hesam
  • 52,260
  • 74
  • 224
  • 365