Development environment of Android Development series

Source: Internet
Author: User
Tags android sdk manager

Touch Android for a long time, remember 09 just a little bit in mainland China, I know that Google has an Android, it is a smart computer operating system. Later, after Android release 1.5, I first downloaded the Eclipse development tools, ADT, and Android SDK, and experienced an Android development, remembering that it was quite a hassle to build the development environment at the time. Since Android development is Java-based, in addition to the above tools, the first need to install the JDK, remember that the popular was jdk1.5 (later is 1.6, now is 1.7, the future is 1.8), after installation needs to set environment variables.

After 4 years, after learning Android again, hope this time can master the Android development system, the following first from the development environment began to talk about.

The system environment of my Notebook:

1, win8.1 64-bit Enterprise Edition operating system

2, 6G memory

I. Installing the JDK (corresponding to the. NET Framework)

I believe the configuration environment variables are already familiar, here is a simple mention, first open the environment variable settings interface: Right-My Computer-Properties-Advanced system Settings-Advanced (tab)-environment variable-new (System variable).

As I have already edited, here are a few figures to indicate.

It is then added in the value of the variable below path:%java_home% (used before and after; separated),%android_home% is also the same.

Verify that the settings are successful. We enter the shortcut key (windows+r), open the Run window, enter CMD and return.

Enter the Java-version command to view the version of the native JDK installation (note the 32-bit and 64-bit version of the issue, if your system is 64-bit, be sure to install the 64-bit JDK).

Ii. Download and install Android development tools

Remember that 10 was a hassle to install Android because the eclipse, ADT, and Android SDKs were installed separately, and then set up in eclipse to correlate ADT and Android SDK. I do not know when to start (several years have not been concerned about, these years have been concerned. NET), Google will integrate these tools together, as long as the download integrated installation package on the official website can be, after downloading the direct decompression (pure green version, no installation), Eclipse and ADT are ready, open to use, great convenience for Android developers.

Http://developer.android.com official website often can't open (may be gun), readers can self-fq or directly search the corresponding development kit.

-----------------------------------------

In order to facilitate everyone to download the toolkit, I here directly to the latest version of the development tool download link: http://yun.baidu.com/s/1hqeNiKk.

Third, install the SDK

Go to eclipse, click the Android SDK Manager button, open the Installer interface, check the version of the SDK you want to install and other content.

Here's a pit. Note: The default is not updated, you need to modify the Hosts file (in the C:\Windows\System32\drivers\etc directory, copy it out, and then add the content at the end of the text, and finally overwrite the original file).

74.125.113.121 developer.android.com

203.208.46.146 dl.google.com

203.208.46.146 dl-ssl.google.com

This way, after you restart Eclipse, open the Android SDK Manager and select the appropriate content to update online.

Open tools-options-others Force https://... sources to be fetched using HTTP/... Make a tick.

Note Do not forget to install system Image (Android emulator), it is recommended to install a version of the SDK, all its subkeys are checked to install.

If you want to browse the local Android development document, the direct open is very slow, also need to modify the host file.

Add the following content:

127.0.0.1 fonts.googleapis.com

127.0.0.1 www.google.com

Go through the steps above to test if you can run Android.

We directly new an Android application project, set the name, parameters, and so on to create good projects, and then create an AVD (Android virtual device) to test.

Then we run the test project (the default, no code is written). After some waiting (slow start) finally started the simulator and successfully ran the test project.

Because I set the AVD dpi is high, so you see a large blank screen, "Hello World" appears relatively small.

PostScript: Development tools In addition to eclipse, there are currently relatively new Android studio, readers can also choose the right IDE for themselves.

Development environment of Android Development series

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.