If you want to start a new project that includes support for Compose by default, Android Studio includes various project templates to help you get started. To create a new project that has Compose setup correctly, proceed as follows:
If you're in the Welcome to Android Studio window, click Start a new Android Studio project. If you already have an Android Studio project open , select File > New > New Project from the menu bar.
2. In the Select a Project Template window, select Empty Activity and click Next.
3. In the Configure your project window, do the following:
Set the Name, Package name, and Save location as you normally would. Note that, in the Language dropdown menu, Kotlin is the only available option because Jetpack Compose works only with classes written in Kotlin.
In the Minimum API level dropdown menu, select API level 21 or higher.
4. Click Finish.