Build an android Environment

Source: Internet
Author: User

Today, I read about Android programming and thought it was very troublesome. But after a careful look, it was all about Java. After so many years of development, it was just a piece of cake for me, it is extremely simple. Next we will build the android environment step by step.

Install JDK first. Go to the official website.

 

And set java_home. There is nothing to say about the basics.

Download eclipse and decompress it to your local device.

Decompress the plug-in. You can install the plug-in online or directly paste the plug-in into the eclipse directory, or use the plug-in. In short, you can choose a method that you are familiar.

Online update address is https://dl-ssl.google.com/android/eclipse/

Update process

Download Android SDK, Baidu, a lot

Decompress the package

After decompression, the directory structure is as follows:

Here are some tools used for Android development. The following describes how to set environment variables. The settings can be modified based on the actual situation of your machine.

After the configuration is complete, open CMD and test whether the configuration is successful by entering android.

Then configure the eclipse Environment

Open eclipse and choose windows> perferences.

Create an AVD test environment

Create an sdcard simulation card, open cmd, and enter mksdcard 1024 m c: \ sdcard. IMG. The last two parameters are size and the other is file location.

 

Click the cell phone in the upper left corner, black. The following page is displayed:

Enter the name and select the Android version to use. Find the location of the created sdcard file.

Click Create

Select the android project for the new project.

Enter the project name, package name, and other information.

Click Finish. Right-click the project and choose run> RUN configuration.

Select target, select the created AVD, and click Run. After a while, a friendly welcome page appears.

Now, we can start a pleasant Android 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.