Set Up Android Studio for Compose
Install the toolchain, SDK, and emulator you need.
Set Up Android Studio for Compose is a free Jetpack Compose Academy lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Jetpack Compose Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Your Tool: Android Studio
Android Studio is the official IDE for Android. It bundles the editor, build tools, emulator, and Compose preview in one place, so it is your home base. 🛠️
Grab the Latest Version
Always install the latest stable Android Studio from the official site. Newer releases ship better Compose tooling, live previews, and faster builds.
The Android SDK
The Android SDK holds the platform libraries and tools to compile your app. Android Studio installs it for you on first launch, no manual download needed.
Create a Compose Project
Choose Empty Activity when you start a new project. This template is already wired for Compose, so you skip all the manual Gradle setup.
Gradle Pulls It Together
Gradle is the build system. It downloads the Compose libraries, compiles your Kotlin, and packages everything into an installable app for you.
The Compose Dependencies
Your module's build file lists the Compose libraries you depend on. The template adds them, but it helps to recognize what they look like.
dependencies {
implementation("androidx.compose.material3:material3")
}Kotlin Comes Built In
Compose is Kotlin-only, and Android Studio ships the Kotlin compiler ready to go. No separate install, you write Kotlin from your very first file.
Sync Your Gradle Files
After any change to build files, click Sync Now. This makes Android Studio fetch new libraries and refresh the project so code completion works.
Set Up an Emulator
The emulator is a virtual phone on your computer. Open Device Manager, create a virtual device, and you can run apps without any real hardware.
Pick a System Image
An emulator needs a system image, the Android version it runs. Pick a recent API level so your Compose app has all the newest features available.
Real Device? Use USB Debugging
Prefer a physical phone? Enable USB debugging in Developer Options, plug it in, and Android Studio will list it as a run target too.
Quick Check
Let's confirm what handles your project's libraries and build.
Recap: Ready to Build
Your toolchain is set: Android Studio, the SDK, Gradle, and an emulator. Start from Empty Activity, sync Gradle, and you are ready to write Compose.
Frequently asked questions
Is the “Set Up Android Studio for Compose” lesson free?
Yes — the full text of “Set Up Android Studio for Compose” is free to read here on the web, and the Jetpack Compose Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Jetpack Compose Academy course, upgrade to CoddyKit PRO.
What will I learn in “Set Up Android Studio for Compose”?
Install the toolchain, SDK, and emulator you need. You practise Jetpack Compose Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Jetpack Compose Academy?
No prior experience is required. Jetpack Compose Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Set Up Android Studio for Compose” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Jetpack Compose Academy lesson?
Yes. Every Jetpack Compose Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- What Compose Replaces: Goodbye XML
- Set Up Android Studio for Compose
- Anatomy of an @Composable Function
- Run Your First App on the Emulator