How to create a new Jetpack Compose project in Android Studio
Compose allows you to build beautiful UIs quickly. Together with the Android Studio tooling support, you’re able to accelerate the development process even further with faster iteration and better debugging.
1. Install Android Studio 4.2 (or later)
At the time of writing, the latest version is Android Studio 4.2 Beta 2. You can install it from https://developer.android.com/studio/preview. Just install and setup as per its instruction.
2. Create an Empty Activity Project
File →New Project →select Empty Activity, then Finish create it as per all the default settings.
3. Setup the dependencies in build.gradle
After the project has been created, on the project panel (left side of the screen), expand the Gradle Scripts, and double-click to open the
build.gradle of the application.