Aaron Waller
10/12/2022, 4:09 PMjava.lang.IllegalArgumentException: Only VectorDrawables and rasterized asset types are supported ex. PNG, JPG
the image I pass as an INT is a PNG.Aaron Waller
10/12/2022, 4:11 PMpainterResource(id = R.drawable.cst_button1)
Not working:
myImageId: Int = R.drawable.cst_button1
painterResource(id = myImageId)
abu naser
10/12/2022, 4:13 PMabu naser
10/12/2022, 4:18 PMval imageId:Int = R.drawable.ic_launcher_foreground
val p = painterResource(id = imageId)
Icon(painter = p, contentDescription = "")
this one is working on my end . maybe you need to add your image through res-> new -> Image Asset .Aaron Waller
10/12/2022, 4:21 PMabu naser
10/12/2022, 5:22 PMephemient
10/12/2022, 6:02 PMKevin Healy
10/13/2022, 3:14 AM