Androidstudio Study Record

Source: Internet
Author: User

Androidstudio Study record 1. Plug-in usage.

plugins.jetbrains.comPlugin website.

2. Catalogue Description:
    • 1. There is a concept of project and module in studio, which says that a window in studio can have only one project, project, which represents a workspace, but a project can contain multiple module For example, the Android library, Java Library and so on, which are referenced by your project, can be regarded as a module;

    • 2, the above directory will be Java code and resource files (Pictures, layout files, etc.) all boil down to SRC, in the SRC directory has a main group, while dividing the Java and res two folders, Java folder is equivalent to the SRC folder under Eclipse, The RES directory structure is the same.


Introduced

Next to app the directory surface to introduce

3. Common Plugin IntroductionGsonFormat

Generate JavaBean

Android butterknife Zelezny Automatic annotations

4.GradelLearn
    • What is Gradle?
      Gradle is a dependency management tool, based on the groovy language, which is oriented toward Java applications, which discards the cumbersome configuration of XML-based, and replaces it with a groovy-based internal domain-specific (DSL) language.
5.buildToolVersionAndCompileSdkVersion、targetSdkVersion、target
    1. CompileSdkVersionis the version number of your SDK, which is the API, to see SDK if there is a response in our directory API-level , such as API-19, API-20, API-21, and so on.

    2. buildeToolVersionis the version of your build tool, which includes the packaging tools AAPT, DX, and so on. The directory for this tool is located at: Your_sdk_path/build-tools/xx. Xx. Xx

    3. targetSdkVersionIf the API version of the target device is exactly equal to this value, he will tell the Android platform that the program has been fully tested in this version, no problem. It is not necessary to turn on compatibility check for this program. Note: This property does not help me resolve compatibility issues.

Summary : The above four properties were used for different periods. CompileSdkVersionand CompileSdkVersion It works at compile time , specifying which one API to compile. targetSDKVersionworks when the program is running.

6.SDKCatalogue Introduction
    1. 【build-tools】There are build tools for different versions (such as 21.1.1), which include aapt packaging tools, dx.bat and aidl.exe so on.

    2. 【platform】is a place to store different api-level versions SDK (software development Kit) directory

    3. 【platform-tools】Are some of the tools related to Android platforms, and adb fastboot other

    4. 【tools】Refers to the Android development-related tools, such as android.bat , ddms.bat(Dalvik debug Monitor Service) , draw9patch.bat etc.

Androidstudio Study Record

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.