Android App Development
Project structure
Figure 1. The project files in Android project view.
Each project in Android Studio contains one or more modules with source code files and resource files. The types of modules include:
Android app modules
Library modules
Google App Engine modules
By default, Android Studio displays your project files in the Android project view, as shown in figure 1. This view is organized by modules to provide quick access to your project's key source files. All the build files are visible at the top level, under Gradle Scripts.
Each app module contains the following folders:
manifests: Contains the AndroidManifest.xml file.
java: Contains the Java and Kotlin source code files, including JUnit test code.
res: Contains all non-code resources such as XML layouts, UI strings, and bitmap images.
The Android project structure on disk differs from this flattened representation. To see the actual file structure of the project, select Project instead of Android from the Project menu.
You can also customize the view of the project files to focus on specific aspects of your app development. For example, select the Problems view of your project to display links to the source files containing any recognized coding and syntax errors, such as a missing XML element closing tag in a layout file.