Install AndroidStudio in ubuntu

Source: Internet
Author: User

Install AndroidStudio in ubuntu

I recently switched my computer's operating system to ubuntu. For those who are not used to win8/win10, ubuntu is indeed a good choice. The basic software is okay. For QQ or something, you can go to wine or downloadCrossOverThe new operating system requires a series of Environment combinations. First, for our android Developers, It is the android environment.
Just yesterday, the preview version of AndroidStudio was updated to 2.0beta6, so we will install the latest version!

Before starting the installation, make sure that you have configured the java environment on ubuntu. You can search for a large part of articles on how to configure the java environment on linux.

After configuring the java environment, we need to download AndroidStudio. The latest preview version of linux is provided below:
Https://dl.google.com/dl/android/studio/ide-zips/2.0.0.15/android-studio-ide-143.2637817-linux.zip <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> Export/ydLUyrnTw8HLLM7SvavL + 73i0bm1vcHLPGNvZGU + release + xL/CvM/CLjxiciAvPg0KPGltZyBhbHQ9 "" src = "http://www.bkjia.com/uploads/allimg/160303/0414591558-1.png" title = "\"/>

Go./android-studio/bin/You will seeStudio. shAndroid studio can be started by running this execution file in the command line. Is it very easy? But have you found that every time we start android studio, we need to start it in the command, it is very troublesome. I hope to give a startup icon like windows, and double-click it to start it.

Well, yes. Next we will create a startup icon and send it to the startup bar of ubuntu. We will place the startup icon directly.~/bin/android-studioDirectory.

First~/bin/android-studioCreateStudio.desktopFile, open it with gedit, copy the following content, and modify it.

[Desktop Entry]
Name = AndroidStudio
Type = Application
Icon = absolute path of your AndroidStudio decompression directory/android-studio/bin/studio.png
Exec = sh the absolute path of your AndroidStudio decompression directory/android-studio/bin/studio. sh

After the content is filled in, save and exit. However, this shortcut cannot be used at this time. You will find that the icon has not changed and double-clicking will also cause an error.

In this case, right-click the file and choose "properties"> "permission"> "allow" as the program execution file. "OK". At this time, you will find that the icon has changed dramatically,

Now we can open Android studio by double-clicking it, but it is still inconvenient. We want to put it in the ubuntu startup bar. This is easy, and you only need to installctrlAnd drag the file to the startup bar with the mouse.

Now we can easily start android studio. The next task is to configure android studio and start your development journey.

Related Article

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.