One small detail I would like to add here, is if your application opens in a new window instead of the application you created.
Add a StartupWMClass class entry, which can help some desktop environment to properly group the application window:
First, use xprop to find the window class name:
xprop | grep WM_CLASS
Then, click on your application window to see its WM_CLASS value and adjust StartupWMClass accordingly
[Desktop Entry]
Name=Android Studio
Exec=studio.sh
Type=Application
Icon=studio
StartupWMClass=studio-Startstudio