Android Development-Easily overcome the development environment

Source: Internet
Author: User

Written in front of the words: I am a 2016-year undergraduate program Yuan A, the university stage has never learned Android, Java is also smattering, recall that the development of this 1.5 of the career really is quite tragic. If you ask me if I like development, sure and sure to tell you do not like Ah! From the initial self-confidence, to the later suspicion of IQ, suspicion of EQ, so that rise to the suspicion of life, how to like up. Alas, full of paper sad Ah! If you ask me to hate development, I am sure and sure to tell you not to hate AH! Also thought to change a post, privately tried a number of different challenges, and later found that life is really six characters "how can Not", later found that all the root of all in my own, no pay of course no harvest, the inner ups and downs are not in this one by one detailed. Since the true love has not been found, it can only find true love on the way to cherish the existing all, for development, also had to hard under the scalp courageously. (The same professional confused small partners can make a friend, although every day I am telling myself to work hard, but always in the face of problems, they are filled with negative energy to endure the day)

What are the pre-development requirements for Android? A computer, this is not nonsense, is to do in the human brain development Ah! However, it is actually good to say so, originally developed the first step is in the human brain. Well, seriously, this is an informative topic to look at the tools we need to prepare in the early stages.

1) JDK

A Java Development toolkit that contains the Java Runtime Environment, provides a stack of Java tools, and a Java class library that is called when developers develop applications. In short, it is the core of Java. First of all to the official website (other download channels are also possible) to download to the local, pay attention to choose the corresponding version of their own computer system OH. After downloading to the local double-click Install, generally we choose the default installation path, after the installation succeeds, will be in the system directory (my is 64-bit system C disk-program Files-java) appears two folders, one represents the JDK, one represents the JRE.

Let's open the bin directory of the JDK to see if there are many executable programs that are suffixed with EXE, these are the tools that the JDK contains, and of course we can use them. The JDK consists of the following basic tools (not officially listed, but based on my own habits and a small enumeration of the observations of peripheral programmers):

Javac: People who have touched Java should be pretty familiar with the command, the Java compiler, which converts the source code into bytecode.

Jar: Look at the name and know it's parking. Packaging tools, packaging the relevant class files into a file.

Javadoc:doc should be about the document, the positive solution, the document generator, extracting the document from the source notes.

Jdb:debugger, debug Error tool

Java: Run the compiled Java program.

After understanding the above-mentioned basic tools, is there an impulse to invoke the command? To start a program directly with command-line tools, we have to configure environment variables for it.

Right click on "My Computer", select "Properties", click on the left "Advanced system Settings" appears in the System Properties window, under the Advanced tab, click on "Environment variables"

A.java_home

First set this system variable name variable value for JDK on your computer installation path, my native is C:\Program files\java\jdk1.8.0_73.

B.path

The path attribute already exists and can be edited directly, if not, new. (If new direct input) is appended to the original variable;%java_home%\bin;%java_home%\jre\bin

C.classpath

Set the system variable name to: CLASSPATH variable value is:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar. Note the variable value string is preceded by a "." Represents the current directory, the purpose of setting up classpath is to tell the Java execution Environment, in which directories you can find the classes or packages that you need to execute the Java program. This completes the installation and configuration of the JDK, and we can use the command line to see if these steps are correct.

2) Android SDK

This is the Android SDK provided by Google, which needs to be introduced when developing an Android program to use the Android-related APIs. However, Android studio as Google's pro-son smashed, has integrated the Android SDK, so we quickly converted to the next step oh. installation of Android Studio.

3) Android Studio

Go to the official website or other ways to get the installation package, the installation process is super simple, always click Next on it. It is recommended to select all of the installation components (including the Android SDK mentioned above), for the installation address required to choose Android Studio and the installation address of the Android SDK, according to the actual situation of their own computer selection is good, If you are lazy enough or confident enough about your C drive, it is possible to keep the default. All the way next down, super cool with wood there, finally appeared completing Android Studio setup, indicating that the installation was complete. Click Finish to launch Android studio and start by letting you choose whether to import the previous version of Android Studio, if it was first installed, of course not imported. Then click Next, will let you choose the type of installation, generally we choose standard type, if asked me the reason, it is because simple, haha ~ ~ Click Finish, configuration work is complete, and then Android Studio will try to download some updates on the Internet, Wait for the update to complete click Finishi to enter the Android Studio Welcome screen. The build of our Android development environment is complete.

(Babbling mom, after editing only to find no blog post really is not good blog Ah!) After all, lazy cancer out of the name, will not be added, next time must pay attention to)

Android Development-Easily overcome the development environment

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.