Once you've created your first Hello World project with Android Studio, we'll see the project structure using Project mode.
I.. Gradle and. Idea
These two directories are placed in some files that are automatically generated by Android studio.
Second, build
Mainly contains some files that are automatically generated at compile time.
Third, Gradle
Contains the configuration file for the Gradle wrapper.
Iv.. Gitignore
Excludes the specified directory or file from version control.
Wu, Build.gradle
The global gradle build script. Use a groovy-based domain-specific language (DSL) to declare project settings, discarding the various configurations based on XML (Ant and Maven).
Liu, Gradle.properties
Global Gradle configuration file
VII, Gradlew and Gradlew.bat
In the command line interface to execute the gradle command, Gradlew is used on Linux and Mac systems.
Eight, HELLOWORLD.IML
Identify this is a Intelij idea project.
Nine, Local.properties
Specifies the path of the Android SDK in this computer.
Ten, Settings.gradle
Specifies all the introduced modules in the project.
Xi. app directory (CORE)
1. Build
It also contains some files that are automatically generated at compile time.
2, Libs
The third-party jar packages that are used are automatically added to the build path.
3. src
Androidtest: Writing the androidtest test case.
Main: Where Java code is placed
Test: Write the Unit test case
4. Gitignore, APP.IML, Build.gradle
Like the above.
5, Proguard-rules,pro
The obfuscation rule used to specify the project code.
Understanding Code Files:
The Oncreat () method in a Java file is a method that must be executed when an activity is created.
Layout file:
Android Program project structure (ii)