Jetpack Compose Missing Material Icon

November 2, 2021

You can use androidx.compose.material.Icon, which contains some of the icons of Material Icons.

You can include full set of material icons via material-icons-extended with the following warning: This module contains all Material icons. It is a very large dependency and should not be included directly.

You can add material icon via Android Studio: File -> New -> Vector Asset -> Clip Art.

To load vector icon in Compose

    painter = painterResource(id = R.drawable.ic_baseline_perm_media_24),
    contentDescription = "Media"
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.