Build Linux Android Development environment

Source: Internet
Author: User

Because Android itself is Linux, in order to avoid all kinds of unnecessary pits, so the development of Android under Linux. Of course not familiar with Linux, choose Windows Development is the same, no problem, personal habits. Say something about my development environment, Ubuntu 14.04 (This is the newest STL), JDK 1.7.0.

The first is the installation of the JDK, this online has a lot of blog can see, not tired of the operation, choose the corresponding version of the line, remember to configure the environment variables. Then the installation of the Android SDK. Recommended on the official website is that the novice chooses to install the ADT bundle version, this ZIP package contains the required To develop tools (including ADT, SDK), even the eclipse configuration is also saved, this certainly saves a lot of things, if you are developed with IntelliJ idea, directly download the SDK and then configure, how to configure can be found on the Internet. As for the SDK downloading under Linux is very Slow, you can use Thunder in Windows to download the first, and then copy the line, note is to click the following DOWNLOAD for other platforms instead of the DOWNLOAD SDk (otherwise you download the window version).

Download the ZIP package after decompression can be used directly, in the open process will ask you to feedback useful information to Google, this look at their own choice, and then you can create an Android project. The first time I need to restart Eclipse to run an Android virtual machine, I don't know if I need to reboot.

Here's a demonstration of a HelloWorld program I built myself.

Create a new Android project


  

Project name and application name is called HelloWorld

  

Then all the way next to the end, the middle will create an activity

    

  

Create a new virtual machine, name or whatever, parameters look at their own settings

Click Run as to select Android application

The virtual machine can see our HelloWorld program after running.

    

Click Execute to see the on-screen output of Hello world!

    

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.