I want to install android studio preview alongside the stable version.
Download the .zip into ~/Download
/home/zelongg/Downloads/android-studio-ide-171.4444016-linux-3.1-canary-4.zip
sudo unzip android-studio-ide-171.4444016-linux-3.1-canary-4.zip -d /usr/local/lib/android-studio-preview
sudo mv -v /usr/local/lib/android-studio-preview/android-studio/* /usr/local/lib/android-studio-preview/
sudo rm -rf /usr/local/lib/android-studio-preview/android-studio/
zelongg@zelongg:/usr/local/lib/android-studio-preview/bin$ ./studio.sh
create a new folder in ~/Android/sdk in case that the newly downloaded sdk will affect the sdk in mini project.
we can successfully run android studio preview 3.1 canary 4
But we cannot create the second desktop entry somehow.
https://developer.android.com/studio/preview/install-preview.html
The 2 desktop entry means:
What I want is that it should show 2 icons for both Android Studio and Android Studio Preview seperately. But now they share one icon in the left bar.
I followed the instructions below, but it doesn't work.
To make the preview version available in your list of applications, select Tools
Create Desktop Entry from the Android Studio menu bar.
You can open Android Studio, click on Configure -> Create Desktop Entry. This should create an entry on the dash. While the accepted answer is quite valid and could be adapted for other applications, this is the simplest way to create an entry.
Once you on the coding screen of the Android studio, to create a shortcut, click on Tools. For a Desktop shortcut and a launcher from Applications, select the “Create Desktop Entry…” option. The system will automatically find the path, thus leave that as it is… Simply press the OK button.
I used Create Desktop Entry
from Android Studio Preview, which replaced the ~/.local/share/applications/jetbrains-studio.desktop
of my stable version.
Then I copied that file to ~/.local/share/applications/jetbrains-studio-preview.desktop
.
The icon was still green, so I downloaded a yellow one and used it in the .desktop
file:
I also edited the .desktop
file to suffix the name property with Preview
Then I ran the stable version to Create Desktop Entry
to restore it.
Unity launcher didn't refresh the preview version icon and name straight away (it's ok after a reboot) and I couldn't figure out which one was which after typing Android Studio
in the launcher. So I ran the jetbrains-studio-preview.desktop
from its directory (first setting it to be executable), and then I locked it to the launcher. The result:
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