If you’re new to Android development, the first thing you’ll have to master is Android Studio itself. Before you write any code, you need to know how to create a project, move around the interface, and understand the folder layout that powers every app. This article walks through each of those steps in plain language, using only the information from the video transcript.
1. Creating a New Project
-
Open Android Studio
- Click the New Project button in the top‑right corner.
-
Choose a template
- Select Empty Activity – it’s the simplest starter for beginners.
-
Configure your project
- Project name:
hello world applications - Package name: e.g.,
com.devish.helloworldapp(unique identifier) - Location: Pick a folder on your computer.
- Minimum SDK: API 24 (Android 7.0). The app will run on Android 7.0 and newer devices.
- Project name:
-
Build configuration language
- Choose Kotlin DSL – the latest recommended option.
-
Finish
- Click Finish to create the project.
⚠️ You may see a Microsoft Defender warning; click “Exclude folder” to speed up Gradle sync if it slows you down.
2. Navigating Android Studio’s Interface
2.1 Project View (Left Pane)
- Shows your file tree.
- Open
app > src > main > java(or Kotlin) → the MainActivity.kt file is here.
2.2 Quick‑Access Menu
- Click the four‑line icon in the top‑left corner of the editor to open a popup menu with additional options.
2.3 Bottom Tabs Overview
| Tab | What It Shows |
|---|---|
| Project View | File tree (same as left pane) |
| Resource Manager | Add images, colors, layouts, strings, etc. |
| Mode Tool Window | Debug, Build, App Quality Insight, Logcat, Terminal |
| Build | Build events; click the hammer icon to compile or assemble |
| Logcat | Runtime logs and crash details |
| Terminal | Command‑line access (useful later) |
2.3.1 Resource Manager
Add assets such as drawables, mipmaps, XML layouts, colors, strings, animations, etc.
2.3.2 Debug Tab
Shows warnings, information, and all log entries while the app runs.
2.3.3 Build Tab
Press the hammer icon to start a build; watch the progress bar and “Build successful” message.
2.3.4 Logcat
Crucial for diagnosing crashes or runtime errors.
3. The Top‑Right Toolbar
| Icon | Function |
|---|---|
| Code | View only the code editor. |
| Split Screen | Code on the left, Jetpack Compose preview on the right (recommended). |
| Design | Preview design only (no code). |
- Notification icon – shows build or run notifications.
- Gradle sync button – triggers Gradle tasks like test, debug, etc.; useful for large projects.
- Device Manager – create/run virtual devices or connect physical ones.
3.1 Device Manager
- Click the Add New Device icon → choose a Virtual Device (e.g., Pixel 9).
- Run it with the play button; the device appears under “Running Device.”
- Physical devices can be connected via USB or Wi‑Fi; they’ll show up automatically.
4. AI Chat & Agent
Android Studio includes an AI chat tab (Ask) and an Agent tab:
- Ask: One‑to‑one chat to troubleshoot code issues.
- Agent: Tell the AI what you want, e.g., “change the color of my button,” and it edits the code in real time.
🚀 Recommendation: Stick with manual coding while learning fundamentals; use AI later for repetitive tasks.
5. Running & Debugging
- Run – builds and launches the app on the selected device.
- Debug – same as Run but starts a Gradle build process that attaches a debugger.
- Stop – click the red square to terminate debugging or running.
6. Understanding Project Structure
6.1 High‑Level View
Project
├─ app (module)
├─ library modules…
└─ feature modules…
Each module contains:
- Gradle file at module level
- AndroidManifest.xml
- src/ – Java/Kotlin code and test folders
- res/ – resources (drawables, mipmaps, values, etc.)
6.2 The App Module
-
AndroidManifest.xml
- Declares app name, icon, theme, permissions, intent filters, etc.
-
src/main/java or kotlin
- Unique package (
com.devish.helloworldapp). - Contains
MainActivity.kt, other UI classes, and the application class.
- Unique package (
-
src/androidTest/ & src/test/
- Test folders (not needed immediately).
-
res/
Folder Contents drawable Images in PNG/JPG format mipmap App icon variants for different screen densities values strings.xml,colors.xml,themes.xmlxml Miscellaneous XML files (e.g., backup rules)
7. Gradle Scripts
7.1 Project‑Level Files
- build.gradle.kts – global plugins and dependencies that affect the entire project.
- settings.gradle.kts – lists modules (
include(":app")).
7.2 Module‑Level File (app/build.gradle.kts)
Contains:
compileSdk,minSdk,targetSdkapplicationId,versionCode,versionName- Build types (
debug,release) - Dependencies specific to the app module
Tip: Dependencies added here apply only to the app module, not to the whole project.
7.3 Version Catalog (lips.version.toml)
Stores library names and versions in one place.
Example usage:
dependencies {
implementation(libs.androidx.core.ktx) // refers to entry in version catalog
}
Conclusion
You’ve just learned how to:
- Create a fresh Android project with minimal settings.
- Navigate the IDE: Project view, tabs, toolbar icons, and device manager.
- Run, debug, and use AI assistance sparingly.
- Grasp the folder hierarchy of an Android app.
- Understand the purpose of each Gradle file.
With these fundamentals under your belt, you’re ready to dive deeper into building real‑world apps. Explore each tab on your own, experiment with adding resources or new modules, and soon enough Android Studio will feel like home. Happy coding!
📌 Full Course Playlist https://www.youtube.com/playlist?list=PLO1OrQEU0vHNmD9Xqzs-qXwzzwrDvdhVu
| # | Tutorial |
|---|---|
| 0 | Introduction |
| 1 | Setting up Android Studio IDE |
| 2 | Mastering Android Studio: Navigating the IDE & Project Structure |
~ ~ THANK YOU FOR READING ~ ~