https://kotlinlang.org logo
#compose
Title
# compose
s

Spikey Sanju

12/09/2020, 7:20 PM
I'm facing following issue for Image component after updating to alpha 08. Why is that happening?
Copy code
None of the following functions can be called with the arguments supplied.
Image(ImageAsset, Modifier = ..., Alignment = ..., ContentScale = ..., Float = ..., ColorFilter? = ...) defined in androidx.compose.foundation
Image(Painter, Modifier = ..., Alignment = ..., ContentScale = ..., Float = ..., ColorFilter? = ...) defined in androidx.compose.foundation
Image(VectorAsset, Modifier = ..., Alignment = ..., ContentScale = ..., Float = ..., ColorFilter? = ...) defined in androidx.compose.foundation
a

aiidziis

12/09/2020, 7:21 PM
You are using wrong parameter name. Rename
imageResource
to
imageAsset
.
s

Spikey Sanju

12/09/2020, 7:32 PM
Thanks got it
👍🏻 1