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).

[Plain]View PlainCopy  
    1. 74.125.113.121 developer.android.com
    2. 203.208.46.146 dl.google.com
    3. 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:

[Plain]View PlainCopy 
    1. 127.0.0.1 fonts.googleapis.com
    2. 127.0.0.1 www.google.com

Sometimes if you can not update the current network to the Google SDK address also to the gun, then we can set up a proxy to download.

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.

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

—————————————————————————————————————————————————————————————————

Google has made it clear that Android studio, based on IntelliJ idea, will replace Eclipse as the IDE of choice for Android apps, and add to this knowledge.

First, install Android Studio

As of November 2015, the current stable version of Android Studio is 1.4 (the latest version is 1.6) and can be downloaded to http://www.android-studio.org/to install the corresponding Android studio.

The next step is to install it, and using the feel is better than eclipse development, and smart tips are quicker.

Second, install Genymotion simulator

First go to http://www.genymotion.net/to register an account, and then download the simulator in shop, select the free version (for personal use only), rich can also choose other versions.

is an EXE file, we choose (without VirtualBox) to download the installation.

Iii. associating Android Studio with Genymotion

Open Android studio,file-settings, search genymotion, click Install.

Select the genymotion installed directory, OK, close as, restart.

Then you can directly open the genymotion, you can add the analog device, start the simulation device.

Launch Android Studio project, prompt to select settings, we select the running Genymotion simulator, OK.

Soon, the simulator is installed, which is twice as fast as the simulator from Eclipse and as.

Development environment of Android Development series

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.