Android Development environment configuration (take windows as an example)

Source: Internet
Author: User

Android Development Environment Configuration Tool

If you are planning on developing Android, then whether you choose to develop under eclipse or choose to develop under Androidstudio, you can configure the Android development environment by following these steps.

Android Development environment configuration Process 1. Preparing a laptop or desktop

The use of laptops or desktops, depending on individual needs, but I would like to stress is not soft on the configuration, to be willing to start. A smooth computer will keep you from getting mad in boring programming.

The official recommended Androidstudio or Eclipse operating environment for the computer configuration requirements are very low, now the market on the computer can basically be achieved, but if the official recommended configuration, will be stuck to the explosion!

My personal recommended Computer configuration is as follows:

The lowest memory 4g,8g is just right, higher and better.

Solid-State Drives! Solid-State Drives! Solid-State Drives! The important thing to say three times, this strong suggestion has. Capacity of 128G is enough, if only solid-state drives on the machine, then choose 256G, the money can be used higher capacity. Why emphasize solid-state drives, and when you have experienced it personally, you never want to go back to the day of the mechanical disk!

Although there may be a solid-state disk, but the mechanical hard disk should be prepared, even if the computer is not installed, but also to prepare a mobile hard disk, do the warehouse. At present, although the mechanical disk speed is slow, but the mechanical disk price is low, the stability is better than the solid-state disk, is still the best choice for backup data, the capacity of the choice of 500G or more OK.

CPU performance of course, the higher the better, with Intel's CPU as an example, consider the cost-effective i5 generally enough, i7 just, money can continue to improve ~ ~

Video card now almost the computer is a single display 2G memory or better, do Android development generally to the graphics card requirements are not very high. For the size of the display I personally biased 17 inch, because the screen large, a look at the code more, and carry on is no more than the other size of trouble, of course, this is purely a matter of opinion.

  Download the Android development tool and configure the development environment below. Before you begin, it is recommended that you set up separate folders for each of the relevant tools, and at the end set up a total folder for all the sub-folders, my file directory is as follows, for reference only:

2. Build the Java Development environment

Android Development must have the support of the Java environment, this need not say more.

Java Development Tools Official download (that is, the JDK, if the download link expires, Baidu will be able to find it). As for how to download, the next good Java development tools How to install, I will not repeat.

It is worth mentioning that in the two IDE Androidstudio or Eclipse for Android development, the download of the installation package is ready to install, do not have to manually configure what environment variables.

3. The core tools for Android development 3.1 First need a basic kit:

sdk-avd-tools Basic Toolkit Download (if one day the download link is swallowed, contact the blogger)

Unzip the downloaded compressed package and put it in the appropriate directory (see recommended location in the image). This folder contains the following content:

Tools, also known as SDK tools, include utilities such as the ADB tool, the Draw 9-patch tool, and the Android emulator. AVD Manager is used to create and manage simulators such as phones, tablets, smart watches, and more. SDK Manager is used to download, update the Android version of the Platform tools, compilation tools, source code, documentation, emulator installation package and so on.

use of the 3.2 SDK manager

If you use the SDK Manager provided above, you will find that only the Android SDK tools display the installed status, and the other displays not installed. The Android SDK Tools is something in the tools above, and since there is only one folder, it will only detect that it is ready to be installed.

  Note : If you open the SDK manager found that does not successfully load out the tool list or load abnormally slow, the problem of excluding your own network, that is to provide the official website of the tool is wall, this time you need agent to FQ. If not FQ with the domestic mirror, the only drawback is that there is no official website updated timely, but completely does not affect the normal development.

To set up access to a domestic image, click Tools on the SDK Manager toolbar, select Options ..., and then press configure: (more mirror addresses will speak later)

Next we need to download additional tools. Before downloading, briefly describe the roles of the tools under the SDK Manager directory:

Tools directory (required tool):

Android SDK Tools (must, up-to-date): described above, version number with RC words is the preview version.

Android SDK Platform-tools (must, up-to-date): From android2.3 onwards, a number of common tools for each Android platform, such as the ADB, and AAPT, aidl, DX, etc., are divided here.

Android SDK Build-tools (must, up-to-date): Android Project build tool.

Android xxx (API xx) directory (optional Platform development tools):

Documentation for Android SDK (optional): Some offline documents on the Android developer's website, but it is slow to download and open, with a domestic mirror address in the back.

SDK Platform (required): the development tools of the corresponding platform, which version of the platform needs to be developed under the download.

Samples for SDK (optional): Built-in Android sample program, recommended installation.

Sources for Android SDK (optional): Android API source code, recommended installation.

xxxxxxxx image (optional): Each object that ends with an image is a simulator that supports the corresponding platform, so let's think of it as a brush bag. (You don't need to bring your own virtual device to install it, you'll get a better virtual device later)

Extras directory (optional extension):

Android support Libraries (required): supports when you implement a version of a platform control effect on a low-version platform.

Android support Repository (required): primarily facilitates the use of Android support Libraries in Gradle, as Google does not publish these libraries to Maven center or Jcenter, Instead, Google's own maven repository was used.

Intel x86 Emulator Accelerator (HAXM installer) (optional): Intel x86 Emulator Acceleration Tool for Windows platforms, with Intel x86 Atom System Image uses to speed up the emulator run. (Personal feeling is still very slow)

In addition, Google is the beginning of those who support the relevant Google services, beginners generally do not use.

The tools you need to download under the SDK Manager directory are:

use of the 3.3 AVD Manager (no need to watch this section if you don't have to bring your own simulator), personal simulator is not recommended.

As I said earlier, AVD manger is used to create a management emulator, as illustrated below to create an Android 6.0 version of the phone:

4. Test with simulator or real machine

It is not recommended to use the self-brought simulator, it is recommended to use the Genymotion simulator for pre-test, to be released to the real machine, you need to use mobile phones and tablets to test.

4.1 Using the Genymotion emulator, you need to virtualbox the virtual machine's mates.

VirtualBox Official Download

genymotion official Download (this official website I sometimes open, sometimes can't open ...) Special attention, use this thing need to register, go in Choose Free Edition! )

If the above link is swallowed, download the bar in my online disk: virtualbox and genymotion download

4.2 VirtualBox Virtual machine installation

This virtual machine is easy to install, so just click Next. It is very powerful and can create a running environment for various systems.

4.3 genymotion simulator installation

This virtual device is good to install, after installation pay attention to configuration. Click to enter the Configuration interface: Settings

The function of each tab is: Account set up accounts information, network set proxy information, VirtualBox set the download location of the virtual driver, with the above VirtualBox installation location regardless of the ADB to set the SDK path to the Sdk-avd-tools folder above , Misc set the screen storage location and clear the virtual cache.

These are configured to then go to the Add page to add each Android version, each brand of the phone's virtual machine (mobile phone has a tablet).

  Note : If the account is not logged on, or can not load the virtual device information, or click to open the download after a few more attempts, especially at night even on the probability of large, if not yet, with the agent bar, here to provide a usable agent:

4.4 Real-machine commissioning

If you are using real-machine debugging, then note into developer mode, tick the device's USB debugging options, and then connect the computer to install the driver. My feeling is that the direct connection is often only installed on the storage device driver, and can not install USB drive, this time need to use third-party applications such as 360 driver master, 360 mobile phone helper, pea pod and other search installed. If the installation of the driver of the process encountered a failure, you can resolve the Baidu itself.

installation configuration for 5.IDE

In the IDE's choice, the current common scenario is Androidstudio, or Eclipse+adt plug- in, as to which kind of solution, depending on the individual needs of Baidu.

5.1 Androidstudio Solution

This IDE official website generally can't open, Google 404 you know, unless FQ, here to a network disk: androidstudio network disk download

After downloading it to the appropriate folder, the first boot will ask for configuration information (select default) and set the path of the SDK. The IDE and the tools will be prompted to push if they are updated during use.

5.2 Eclipse+adt Solution

ADT is a plug-in for Android under Eclipse, first given: Eclipse and ADT Network disk download , extract password:3552. Of course, you can also go to the official website to download, pay attention to the selected version.

Configuration process Under this scenario: Eclipse installs the ADT tutorial offline , configures the SDK directory for Eclipse

6. Plugins and proxies

Consider the following:

Installing the Genymotion plugin for Android Studio

Install the Genymotion plugin for Eclipse (most likely not connected to the destination address)

The main purpose of installing this plugin is to open the Genymotion emulator directly in the IDE, without installing or affecting the use.

Because many official website is the wall, therefore needs to use the proxy to visit, if does not have the agent, the following two websites may use:

Android development tools and related images

Android Developer site Mirroring

Android Development environment configuration (take windows as an example)

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.