Ubuntu under Android Studio installation, configuration and use

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.