Android Program project structure (ii)

Source: Internet
Author: User

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)

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.