I installed android-studio through ./studio.sh command in terminal and manually created desktop-entry with following details in it :

[Desktop Entry]
Name=Android Studio
Exec=bash -i "/opt/android-studio/bin/studio.sh"

Whenever I launch android-studio through icon launcher it again runs the setup wizard and ask to download sdk. I have already downloaded and configured android studio with sdk. (The location of sdk is /root/Android/SDK whereas the new setup wizard tries to find sdk in the /home/user/ directory).

How do I launch the installed SDK via .dekstop file?


Once you launch Android Studio, you should have a screen like this: enter image description here

Click on Configure and this will bring you here: enter image description here

Start the SDK Manager and then edit the Android SDK Location. enter image description here


This is happening because your sdk is in /root/Android instead of /home/user/Android. You didn't install sdk for the account from which you are logged in, instead you installed it for root user. In this state studio will run normally if you log in as root (highly discouraged). Normally, sdk should be located in /home/user/Android or /opt/Android. Just move the sdk to the right place and everything would be alright.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.