0

This morning I got Android Studio updated, and now it has a bug. The solution is here, so I just need to rename snap's file, how can I do this, if snap files are read-only?

Maybe there is a way to downgrade to the previous version of Android Studio? Because now when I do snap info android-studio it seems like there are no channels with previous versions.

Andrew T.
  • 173
  • 1
  • 1
  • 9
Kalich
  • 47
  • Did you report the bug to the Snap author? The Snap ecosystem is designed so that bugfixes can be pushed out rapidly. Up to four times each day – user535733 Aug 10 '21 at 12:01
  • @user535733 the author already knows about the bug and they promised to fix it in the next minor release, but the bug is really annoying and I would like to fix it as soon as I can – Kalich Aug 10 '21 at 12:40

3 Answers3

1

There is no generic mechanism for renaming snaps nor editing yet. Seems you have to rename some .jar within the app. So you have to recreate the snap.

If this is the only solution of the bug, I suggest downloading Android Studio from here and installing manually.

Edit: If you need help regarding to installing Android Studio, feel free to reply.

Alca
  • 180
  • There is a way to remount a snap read/write. There is a snap application called 'overlay' (you can install it from Snap Store) that does exactly this. Then, you need to write a script that is run @reboot in crontab that remounts the snap read/write using 'overlay' and renames the needed file(s). – raj Aug 10 '21 at 11:34
0

I would recommend to install Android Studio using Ubuntu Make:

sudo add-apt-repository ppa:lyzardking/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make

umake android android-studio

As the result it will be installed into ~/.local/share/umake/android/android-studio/ and you can edit any files here.

N0rbert
  • 99,918
0

Maybe there is a way to downgrade to the previous version of Android Studio?

Yes, this is very easy with snaps. Just run:

sudo snap revert android-studio

Explained in more detail here.

Artur Meinild
  • 26,018