After upgrading from Alpha 9 to Alpha 11, I got th...
# compose
d
After upgrading from Alpha 9 to Alpha 11, I got these two issues. Any idea what’s the new syntax?
z
what’s the error?
d
For the Icon:
Copy code
None of the following functions can be called with the arguments supplied: 
public fun Icon(bitmap: ImageBitmap, contentDescription: String?, modifier: Modifier = ..., tint: Color = ...): Unit defined in androidx.compose.material
public fun Icon(painter: Painter, contentDescription: String?, modifier: Modifier = ..., tint: Color = ...): Unit defined in androidx.compose.material
public fun Icon(imageVector: ImageVector, contentDescription: String?, modifier: Modifier = ..., tint: Color = ...): Unit defined in androidx.compose.material
n
For the icon one, you need to add a description
Icon(<http://Icons.Default.Menu|Icons.Default.Menu>, "Menu")
a
for the first one you have to add an import manually
import androidx.compose.foundation.lazy.items
d
thanks @Nat Strangerweather thanks @Andrey Kulikov it fixed it
👍 1