Search code examples
android-jetpack-composeandroid-jetpack-compose-material3android-min-sdk

What is the minimum SDK version support for Material Design 3 (M3) in Compose?


What is the minimum SDK version support for Material Design 3 (M3) in Compose?


Solution

  • Acoording to this official guide, in general you require at least API 21 in Jetpack Compose:

    In the Minimum API level dropdown menu, select API level 21 or higher.

    For Material3, there is no extra API version that you need, so you can use Material3 with API level 21.
    You can create a Jetpack Compose Activity in the Android Studio project setup wizard. Just select the option "Empty Compose Activity (Material3)". Then, Android Studio will automatically set up the project for you, and you can verify that it uses API 21.

    Android Studio Screenshot

    Also have a look at this official sample project for Material3 that also uses API 21.