Android Basics Getting Started Tutorial--1.2 development environment Building

Source: Internet
Author: User

Android Basics Getting Started Tutorial--1.2 development environment Building

Tags: Android basics Getting Started Tutorial

Now the mainstream Android development environment is:
①eclipse + ADT + SDK
②android Studio + SDK
③intellij idea + SDK
Now most of the domestic developers are still using eclipse, and Google announced that ADT is no longer updated, and the official website also removed the integration of the Android development environment of the Eclipse download link, a variety of phenomena that the developers eventually eventually transition to Android Studio, Of course this transition time will be very long, but if you are just learning Android, it is recommended to go directly to the Android Studio, and many excellent open source projects are based on Android studio! Of course, in this tutorial two development environments will be an introduction, which depends on you ~
There is also a intellij, similar to the Android studio, does not explain this!

1.JDK Installation and Configuration
  • Step 1: Download the JDK
    Can be downloaded to the official website: JDK Download
    can also be to the author of the network disk download: the author network disk
    PS: This casually next can, the relationship is not big, 32 bit can only under 32!

  • Step 2:JDK Installation
    The next step in a fool's style!

  • Step 3: Configuration of environment variables
    Environment variables are configured to facilitate the operation of some of our command line, follow-up will be used!
    Right-click My Computer--advanced--Environment variables

    New Java_home

    Modify the path variable, do not delete the original thing!!!!

    New Classpath

    Verify that the environment is configured to complete
    Open the cmd (command line) of the computer, the win key + R input cmd, and then in the command line Javac and Java, the results show that the configuration is complete:

2. Development tools Two Select one

In the beginning also said the development environment of the IDE, in addition to the previous forget to say: Android Studio is a comparison of eating configuration, if the computer is not good, it is recommended to use Eclipse for Android development, the following first, we are familiar with the IDE development of the app process, Follow the process below to familiarize yourself with the IDE's use:

Then choose one of the two below and start our Android development path!

Eclipse + ADT + SDK:
Android Studio + SDK:

3. Analysis of related terms
  1. Dalvik: Android-specific virtual machines, unlike JVMs, Dalvik virtual machines are ideal for use on mobile devices!
  2. AVD: (Android virtual machine): Android emulator
  3. ADT: (Android development tools) Android development tool
  4. SDK: (software development Kit) Software Development Kit is a collection of tools such as Android, platform architecture, etc., such as Adb.exe
  5. DDMS: (Dalvik Debug Monitor Service) Android debugging tool
  6. adb: Android Debug Bridge, in the SDK Platform-tools directory, a lot of features, command line prerequisites
  7. DX tool: Convert. class to. dex files
  8. AAPT: (Android Asset packing tool), Android resource packaging tools
  9. R.java files: automatically generated by the AAPT tool according to the resource files in the app, can be understood as a resource dictionary
  10. **androidmanifest.xml:**app Package name + Component Declaration + Program-compatible minimum version + required permissions and other program configuration files

Follow-up content for beginners you may be a bit difficult, but behind the back, you will find these things very useful ~
If you can't read it, you can skip it first.

Some instructions from the 4.ADB command line

We also need to configure environment variables for our SDK before executing the ADB directive
Step 1: Create a new android_home environment variable and paste the SDK root address:

Step 2: Update the PATH environment variable, at the beginning of paht add:%android_home%\tools;
After the configuration has been completed, the following will be learned instructions:

5.APP Program Packaging and installation process:

Installation process for 6.APP:

7. Summary of this section

In this section, we analyze the current situation of the Android IDE, and suggest that the hardware conditions allow for the development of Android apps using Android studio, the installation and configuration of the JDK, the process of familiarity with the IDE, the parsing of some key names, The common directives of the ADB command line, and finally the program's packaging installation and resolution of the installation process! After this chapter I believe you have a simple understanding of Android development, understand the process of developing a program, and the corresponding project directory structure! I believe you will complain that the simulator AVD is running slowly, and the next section will introduce you to an Android simulator--genymotion that is faster than the real machine!

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android Basics Getting Started Tutorial--1.2 development environment Building

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.