Using Android Studio to develop applications under Ubuntu, you first need to install the IDE.
Situation 1:ubuntu install Android Studio
Open the terminal and execute the following command:
sudo apt-add-repository ppa:paolorotolo/android-Studiosudo apt-get update sudoinstall Android-studio
In the execution of step 1 o'clock, James's case is:
Let the user choose to execute: Enter (continue execution) or CTRL + C (Terminate execution)
Wait until after pressing ENTER, the terminal like loses the instruction, has stayed at above result place. If this is the case, you can choose to terminate the operation and execute the above instruction again.
Scenario 2: Add a shortcut to Android studio on the desktop
Enter the specified system file directory:
cd/usr/share/applications/
Check to see if there is a desktop file for Android Studio: Android-studio.desktop.
If it exists, it is opened and edited, and if it does not exist, the file is created and edited.
sudo gedit/usr/share/applications/adroid-studio.desktop
As described below:
[Desktop entry]type=applicationterminal=falseName=Android studioexec =/opt/android-studio/bin/studio. SH Comment for Development and debugging. Icon=/opt/android-studio/bin/studio.pngcategories=gnome; Gtk;development;ide;
where the path corresponding to exec and icon should correspond to the installation directory path.
Save and close the file and run the following command:
sudo chmod +x/usr/share/applications/android-studio.desktop
Continue with the instructions below to open the specified path directory in the form of a window:
sudo nautilus/usr/share/applications
In the window above, locate the Android Studio shortcut and drag the file to the desktop.
Ubuntu under Android Studio installation, configuration and use