Android Development Learning-building a development environment and building android

Source: Internet
Author: User
Tags android sdk manager

Android Development Learning-building a development environment and building android

I learned some simple UI components, layout and four main components of android in the school class. Data Storage and network communication are all simple concepts and getting started. Many things need to be learned by yourself.

Let's take a look at how to build the Android development environment. There are two methods for development: Eclipse and Android Studio.

Eclipse

1. Download the tools required for the android development environment:

1) download the JDK and configure the environment variables. If you have learned Java, there are many online Baidu websites.

JDK is the core of Java, including the Java Runtime Environment (Java Runtime Environment), a bunch of Java tools and Java class libraries called when developers develop applications.

JDK includes the following basic tools:

  • Javac: a Java compiler that converts source code into bytecode.
  • Jar: a packaging tool that packs related class files into one file.
  • Javadoc: Document builder, which extracts documents from source code comments.
  • Java: run the compiled java program.

2) download Eclipse

Eclipse is an IDE developed for Java applications and Android (integrated development environment ). Eclipse itself does not need to be installed. After downloading and decompressing the package, you can use it.

3) download the Android SDK

The Android SDK provides the API library required for developing Android applications and the development tools required for building, testing, and debugging Android applications.

4) download the ADT plug-in

To facilitate the creation, running, and debugging of Android applications, the Android Development team has customized a plug-in for Eclipse IDE: Android Development Tools (ADT ).

The above four items need to be downloaded online. Download Eclipse, JDK, Android SDK, and ADT plug-in

: JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Eclipse: http://www.eclipse.org/downloads/

Android SDK: http://developer.android.com/sdk/index.html

ADT: http://developer.android.com/sdk/installing/installing-adt.html

Among the four software to be downloaded above, except for JDK, Eclipse, Android SDK, and ADT plug-in all require FQ to be able to download normally. If FQ is not enabled, the URL listed above cannot be accessed normally. Therefore, prepare the FQ tool in advance or contact the people around you.

2. Build an Android development environment using the downloaded software

1) install the Android SDK, that is, the third downloaded above. To decompress the package, there will be an SDK Manager.exe, double-click it, Android SDK Manage is responsible for downloading or updating SDK packages of different versions, we can see that only one version of SDK tools is installed in the default Android sdk Manager. You can download and install APIs of other versions.

2) install the ADT plug-in for Eclipse. Here, we can install the ADT plug-in package directly by downloading it (this method can be performed in an offline environment ).

Start Eclipse. After Eclipse is started, click [Help] menu> [Install New Software ...], Click [Add... ] Button, select the fourth directory downloaded above. Then, in the dummies mode, after the installation is complete, a prompt box is displayed, prompting us that we need to restart Eclipse. Click the [Yes] button to restart Eclipse. After Eclipse is restarted, it intelligently associates with the Android sdk under the same directory according to the directory location. If Eclipse is not automatically associated with the installation directory of the Android sdk, the prompt shown in is displayed, we are required to set the installation directory of the Android SDK.

Click the Open Preferences button. The Android settings are displayed on the pop-up panel. Fill in the SDK installation path, that is, download the third SDK, the Platform packages installed in the SDK are displayed. Click OK to complete the configuration. In this way, the configuration is basically completed.

 

 

Android Studio

Android Studio IDE (integrated development environment for Android platform) was first released at the 2013 GoogleI/O conference ). It is based on the Intellij IDEA development environment and aims to replace Eclipse and ADT (Android Developer Tools) to provide developers with better development tools. Since Google has been promoting it, I believe it is expected to catch up with Eclipse soon.

Compared with Eclipse, Android Studio IDE has its own features:

  • Provides better support for UI design and code writing, allowing you to easily adjust various resolutions on the device.
  • The ProGuard tool and application signature are also supported.
  • However, currently, Android Studio cannot manage multiple projects in the same window. Each project opens a new window. I guess this is a reference to Intellij IDEA and Google will not make any adjustments in the near future.
  • It is really good to support the Gradle automated build tool, but it still takes some time for developers who just transferred from the Eclipse platform to learn and adapt.

Download Tool

Physical server version: Win 7 (64-bit)

Java jDK version: jdk-7u45-windows-x64 (64-bit)

Android Studio: android-studio-bundle-135.1740770-windows

Note: The physical server version and Java SDK version must be the same, that is, both 64-bit and 32-bit.

You also need to configure jdk environment variables.

Android Studio is generally installed in the dummies mode. Android Studio is usually downloaded along with the android sdk. If we choose android sdk on the way, we need to download the android sdk.

 

This completes the configuration.

 

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.