204

I'm trying to install Android Studio so that I can launch it from a launcher instead of via terminal.

Android Studio > Tools > Create Desktop Entry doesn't do anything

Can someone give specific instructions please?

I think this is something to do with the permissions in /usr/local/ I tried doing a chmod as explained in this article and it still didn't work.

I tried modifying the Android Studio launcher file that was in /usr/share/applications/ and it would not launch the app under my user. If I launch it as root it's fine, but that's not very practical.

Zanna
  • 72,312
spences10
  • 2,652

9 Answers9

325
Android Studio -> Tools -> Create Desktop Entry

enter image description here

Now, you should be able to see in your system menu:

enter image description here

Tomblarom
  • 103
Dipendra
  • 3,359
166

Here is my AndroidStudio .desktop file which works from the launcher.

[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec="/home/username/Programs/AndroidStudio/bin/studio.sh" %f
Icon=/home/username/Programs/AndroidStudio/bin/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-android-studio
Name[en_GB]=android-studio.desktop

If you are unable to create an entry for Android Studio on the Unity launcher through the Tools > Create Desktop Entry... option, it is possible that you might have a Unity generated jetbrains-android-studio.desktop in your ~/.local/share/applications folder. To confirm, open the file and check for the following entry:

X-UnityGenerated=true

Delete the file and try again.


Alternatively, you can also open Android Studio, click on Configure -> Create Desktop Entry. This should create an entry on the dash:

screenshoot

Lau
  • 103
Mendhak
  • 4,530
17

You can open Android Studio, click on Configure -> Create Desktop Entry. This should create an entry on the dash.

11

From the quick start panel, (which opens up once android-studio IDE launched), click on "Configure" which takes you to the configure panel then click on "Create Desktop Entry".

You can also go to Tools -> Create Desktop Entry once you're inside an Android Studio Project.

This basically puts a jetbrains-android-studio.desktop file into your Ubuntu's ~/.local/share/applications folder.

3
  1. Open Android Studio.
  2. Right-click its icon in the launcher.
  3. "Lock to Launcher".
0xF
  • 131
  • 2
2

Android studio does not seem to have this option to 'Create a desktop entry' anymore, so I decided to switch to using snaps.

I was able to install android studion using this snap:

https://github.com/snapcrafters/android-studio

The install command is listed on the github link, but here it is anyways:

sudo snap install android-studio --classic

This will install and manage any updates for android studio, as well as add a desktop entry!


If you are interested in having something like this for some JetBrains IDE's, then checkout Toolbox!

smac89
  • 1,085
2

The best way I know of doing this is, open Android Studio then under Tools click on "Create Desktop Entry". This will list android studio in all programs list, from there you can add the application to quick launch.

0

I solved this changing android-studio from /usr/local/ to /opt/ Then I configured using the tools menu Android studio 4.1.3

E Todt
  • 41
0

For Android Studio 1.2+ the WM_CLASS is jetbrains-studio. So you have to add or change

StartupWMClass=jetbrains-studio

to your android-studio.desktop file.