如何在Ubuntu 20.04 LTS中为Android Studio Arctic Fox | 2020.3.1创建启动器图标?
Fix Missing Android Studio Desktop Launcher on Ubuntu 20.04 LTS (Arctic Fox)
Hey there! I’ve run into this exact issue with Android Studio Arctic Fox on Ubuntu 20.04 before, so let’s walk through a few solid solutions to get that desktop launcher working:
Method 1: Manually Create a Desktop Launcher File
This is the most reliable workaround when the automatic "Create Desktop Entry" option is missing. Here’s how to do it:
- Open your terminal and create a new desktop configuration file with a text editor like nano:
sudo nano /usr/share/applications/android-studio.desktop - Paste the following content into the file. Double-check the paths to match where you extracted Android Studio (if you unzipped to
/usr/local/android-studio, these paths should work):[Desktop Entry] Version=1.0 Type=Application Name=Android Studio Comment=Official IDE for Android app development Exec=/usr/local/android-studio/bin/studio.sh Icon=/usr/local/android-studio/bin/studio.png Terminal=false Categories=Development;IDE; StartupWMClass=jetbrains-studio - Save and exit nano: Press
Ctrl+O, hit Enter to confirm, thenCtrl+X. - Give the file executable permissions so it works properly:
sudo chmod +x /usr/share/applications/android-studio.desktop - You should now see Android Studio in your applications menu. If not, try logging out and back in, or double-click the
.desktopfile directly to test it.
Method 2: Find the "Create Desktop Entry" Option in Android Studio
Sometimes the option is hidden until you finish the initial setup. Let’s try this:
- Launch Android Studio from the terminal first:
cd /usr/local/android-studio/bin ./studio.sh - Once the IDE fully loads (make sure you complete any initial setup steps like importing settings or installing the Android SDK), look at the top menu bar. Go to Tools > Create Desktop Entry.
- A prompt will ask if you want to create the entry for just your user or all users. Choosing "For all users" will make the launcher visible to everyone on the system.
Method 3: Fix Permissions (If the Above Methods Fail)
If the "Create Desktop Entry" option still doesn’t show up, it might be a permission issue with the Android Studio directory:
- Run this command to give your user ownership of the Android Studio folder:
sudo chown -R $USER:$USER /usr/local/android-studio - Restart Android Studio from the terminal and check the Tools menu again—the "Create Desktop Entry" option should now appear.
内容的提问来源于stack exchange,提问作者Shakib hasan
相关产品推荐
相关产品推荐

