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
-
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.
-
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
-
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
-
【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.
-
【platform】is a place to store different api-level versions SDK (software development Kit) directory
-
【platform-tools】Are some of the tools related to Android platforms, and adb fastboot other
-
【tools】Refers to the Android development-related tools, such as android.bat , ddms.bat(Dalvik debug Monitor Service) , draw9patch.bat etc.
Androidstudio Study Record