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

Daniele B

01/28/2021, 9:37 PM
After upgrading from Alpha 9 to Alpha 11, I got these two issues. Any idea what’s the new syntax?
z

Zach Klippenstein (he/him) [MOD]

01/28/2021, 9:38 PM
what’s the error?
d

Daniele B

01/28/2021, 9:39 PM
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

Nat Strangerweather

01/28/2021, 9:39 PM
For the icon one, you need to add a description
Icon(<http://Icons.Default.Menu|Icons.Default.Menu>, "Menu")
a

Andrey Kulikov

01/28/2021, 9:40 PM
for the first one you have to add an import manually
import androidx.compose.foundation.lazy.items
d

Daniele B

01/28/2021, 9:50 PM
thanks @Nat Strangerweather thanks @Andrey Kulikov it fixed it
👍 1