What Android versions does Jetpack Compose support?

Viewed 1079

I was searching online for this pretty basic question and couldn't find the answer. Does Jetpack Compose only work on sdk 31, or it's it able to work on previous Android versions? If it is semi backwards compatible, how do I use it in previous versions?

1 Answers

Choose API level 21 or higher. Source here.

Edit: Your build gradle will look like this:

android {
compileSdk 31

defaultConfig {
    minSdk 21
    targetSdk 31
Related