Google to an article called How to add Android Studio to the launcher? [3], there is a section of answers content:
Here's my androidstudio. Desktop file which works from the launcher.
[Desktop Entry]Version=1.0Type=ApplicationName=Android StudioExec="/home/username/Programs/AndroidStudio/bin/studio.sh" %fIcon=/home/username/Programs/AndroidStudio/bin/idea.pngCategories=Development;IDE;Terminal=falseStartupNotify=trueStartupWMClass=jetbrains-android-studioName[en_GB]=android-studio.desktop
Alternatively, you can also open Android Studio, click on Configure (if you have already turned on as, change to tools here), Create Desktop Entry. This should create a entry on the dash:
------------------------
Androidstudio.desktop file on your desktop, that's what it looks like.
After doing this, you can start Android studio from the table and dash.
If you are prompted for an issue with an untrusted app launcher, simply right-click the app's desktop file, and on the Permissions tab, tick "Allow files to be executed as a program" [4].
Lock to launcher If you don't need a desktop icon, this way you can quickly lock the as icon on the launcher. In the first open as welcome interface, according to the Configure in the Create Desktop Entry, at this time on the Launcher as icon right-click Lock to Launcher, you can lock the as shortcut here. Why do you want to execute the Create Desktop entry? Because this is not the case, although there is also lock to launcher this option, but it may not be successfully locked on the launcher, exit as after the launcher icon has disappeared automatically. Also: If you open a project into the main interface, you can find the Create Desktop entry option in the Tools drop-down menu.
Linux configuration Quick Start mode for Android Studio