Configure Android SDK in Ubuntu

Source: Internet
Author: User

First, confirm that your JDK has been installed properly and can be used. If the installation is normal, run the following command in Ubuntu:

JDK with normal Configuration ,:

Then go to the http://dl.google.com/android/android-sdk_r08-linux_86.tgz to download the development kit, whether i386 or amd64, all download this development kit, and decompress it to the main directory, note that the directory name can not contain Chinese.

Run $ android_sdk_home/tools/Android, as shown in, and update the development platform. The script supports a graphical interface, which can also be executed on the console.

 

After the development is complete, the download is completed, as shown in:

 


CD/etc/

Sudo gedit Profile

 

Append the paths of tools and platform-tools.

Path = $ path:/home/android_sdk/tools

OK

Qi
Eclipse: Eclipse 3.5 in Ubuntu is used in this article. Click Help-> install new
Software...-> Add..., enter "android developer toolkit" as the name, location
For "https://dl-ssl.google.com/android/eclipse ",.

 

Install all the plug-ins, as shown in.

 

After the installation is complete, restart eclipse, click window-> preferences-> Android, and select Android SDK location, as shown in.

 

Now, you can develop Android applications.ProgramNow, let's write a "Hello Android ".

First, start eclipse and create an android project, as shown in.

 

Click "Next" to fill in the relevant information.

 

Click "finish" and do not create an android test project. At this time, a "hello wolrd, mainactivity!" project is created !" Project.

Right-click the project and click "Run as-> Android Application". The following dialog box is displayed: Collection of business accounts

 

Click "yes" to start "android SDK and AVD manager". Currently, you can also start it through "window-> Android SDK and AVD manager", as shown in.

 

Click "new..." to create an AVD, save it, and enter relevant parameters, as shown in.

 

After entering the parameters, you can click Start... to start AVD, as shown in. IPhone 5

 

It takes a long time to start. Please wait. Many Android Developers are reluctant to close the started AVD, as shown in.

 

After the app is started, you can see the Android app, as shown in.

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.