Project Structure

Describing Project Directories

Before we begin, here is the project structure when opening the project in Android Studio:

Project Directories

Source Code Directories Description

manifests Folder

The manifest folder contains .xml file related to your android application. .xml file contains your application metadata, packages for Kotlin file, and other application components.

Android Manifest

java folder

The java folder contains all the source code (libraries,test files). If we create any new project by default the class file MainActivity.kt file with empty implementations will create automatically under the package name. For example see the “org.zus.bolt.helloworld” Main Activity in the screenshot below.

Java Folder

assets Folder

assets folder contain config.json which provides storage network configuration.

Assets

Resource (res) folder

The resource folder contains images, XML layouts, and UI strings for the android application.

Resources Directory

Gradle Scripts folder

Gradle means automated build system and it contains a number of files that are used to define a build configuration that can be applied to all modules in our application. In build.gradle (Project) there are buildscripts and in build.gradle (Module) plugins and implementations are used to build configurations that can be applied to all our application modules.

Last updated