9: Android Development tool note

Source: Internet
Author: User

One: Android Studio tutorial http://study.163.com/course/courseMain.htm?courseId=1003130007

II: JDK

1: Download JDK URL: http://www.oracle.com/technetwork/java/index.html (java.oracle.com)

Top downloads-> Javase

2: Environment variable setting

System variables: JAVA_HOME:JDK installation path

Path: The bin directory in the JDK installation directory needs to be added to the existing path variable, the bin directory contains frequently used executable files such as Javac/java/javadoc, set the path variable, can be executed under any directory javac/ Java and other tools, if you use Androoid Studio alone, you may not need to configure the path to change.

CLASSPATH environment variables. The role is to specify the class search path, to use the already written classes, the premise is to be able to find them, the JVM is through the classpth to find the class. We need to set the Dt.jar and Tools.jar in the Lib subdirectory of the JDK installation directory to classpath, of course, the current directory "." must also be added to the variable

CMD to see if successful: Java-version javac-version set Java_home (Java installation path)

Three: Android Studio

A: Download as URL: developer.android.com (Requires FQ) or:

B:configure->check for UPDATE: Detect update latest Version

C:configure->settings->updates: Check the latest version below

The update mechanism built into Android Studio is set to the following four optional versions:

    • Canary (Canary): Bleeding Edge (a new, and therefore not perfect) technology, around the week. This is the first release of the preview version, in order to be able to get real-world feedback during the development process. The canary version will always have the latest version including the beta, stable release updates. We recommend installing the Canary version with a beta version or stable version at the same time.
    • Dev (development): The Canary version is upgraded to the dev version after a full test.
    • Beta (Beta): releases a pre-selected canary version based on stability. Be released and updated to get feedback before the stable version. The beta version will be updated with a new stable version until a new Canary version is identified as the beta version.
    • Stable (Stable version): A stable version available from the Android developer website.

Four:

1.compile ' com.android.support:appcompat-v7:22.2.1 '
2.provided ' com.squareup.dagger:dagger-compiler:1.2.1 '
3.compile files (' Libs/picasso-2.4.0.jar ')
4.compile Project (': Androidpulltorefresh ')

5.provided Project (': Lib ')

1 is to download a dependency package from repository (default is Jcenter ()) to compile and package
3 is to find Picasso-2.4.0.jar this file from the local Libs directory to compile and package. Similar commands have ' Compile Filetree (dir: ' Libs ', include: ' *.jar ') '--all the jar files in the Libs directory are compiled and packaged.
4 is to compile and package another module (equivalent to the library in Eclipse)

Provided is provided to those commands that simply compile a non-packaged scene. Is that I have a dependency on a jar file when I compile it, but when I finally package the apk file, I don't want to put the jar file in it, so I can use this command.

What I know now is a plug-in scenario that requires this command.

Provided means to provide compilation support, but does not write apk

Five:

Android Studio Gradle Could not the reserve enough space for object heap first step: Open gradle.properties This file in your Android studio project; second step: This file is added at the end of the sentence: org.gradle.jvmargs=-xx:maxheapsize\=256m-xmx256m.

9: Android Development tool note

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.