(because it is preliminary, inevitably there are errors, if there is a problem in the record, you are welcome to correct, common growth)
We default your as is already installed and good, about as installation, a lot of online, please find your own resources
The following document lists the configuration and the directory structure of the AS project
Configuration:
1.config: User profile, save user's personal settings (all the familiar you have set, note backup, will not be set again and again)
2.restart: Don't Care
3.system: Running the generated cache environment ( will grow larger )
① consider configuring a disk with large disk space
② can be deleted, but some data will be initialized when used for the first time
Project structure:
There will be a projects and module concept in as, which is a little different from eclipse, but can be compared to each other.
①project: A workspace similar to eclipse (workspace), which allows for multiple module, but should place the module associated with the same Project
②module: Corresponds to a standalone executable or public library
In ③as, project is independent of each other
C:.
│build.gradle Project Gradle Build script
│gradle.properties Project Gradle Properties file
│gradlew used on a PC that doesn't have Gradle installed, it's useless
│gradlew.bat used on a PC that doesn't have Gradle installed, it's useless
│local.properties specifying the directory where the SDK resides
│settings.gradle Project Gradle settings file
│
├─.gradle
├─.idea
├─app
││.gitignore git ignores file list
││app.iml temporary files, no need to care
││build.gradle Module gradle Build Script
││proguard-rules.pro Proguard Obfuscation Rules
││
The │├─build build directory, equivalent to the bin directory of the default Java project in Eclipse. Compile the generated apk in this directory
│├─libs Dependency Packages
│└─src
│├─androidtest Testing related Code folders
││└─java
││└─com
││└─samsarah
││└─myapplication
││applicationtest.java
││
│└─main
││androidmanifest.xml manifest file
││
│├─java Project Source Code
││└─com
││└─Samsarah
││└─myapplication
││mainactivity.java
││
│└─res resource File
│├─drawable. 9 images can only be placed in the drawable directory
│├─layout
││activity_main.xml
││
│├─menu
││menu_main.xml
││
│├─mipmap-hdpi similar to drawable-hdpi
││ic_launcher.png
││
│├─mipmap-mdpi similar to drawable-mdpi
││ic_launcher.png
││
│├─mipmap-xhdpi similar to drawable-xdpi
││ic_launcher.png
││
│├─mipmap-xxhdpi similar to drawable-xxdpi
││ic_launcher.png
││
│├─values
││dimens.xml
││strings.xml
││styles.xml
││
│└─values-w820dp
│dimens.xml
│
├─build
└─gradle
The └─wrapper Gradle wrapper can be seen as an encapsulation of gradle, which makes it possible to build with Gradle on a computer that does not have Gradle installed. No use.
Gradle-wrapper.jar
Gradle-wrapper.properties
Focus on the project directory, found that some folders do not exist, this time we need to create manually, then create where?
main/assets/
main/aidl/
main/jni/---Place C code
main/jnilibs/---place so library
main/res/raw/
main/res/anim/
The directory structure of the project of the first experience of Android Studio