"Cannot find a parameter with this name: items" for Basic Jetpack Compose Codelab

Viewed 1626
2 Answers

Apparently, we need to include another import that is not in the code example

import androidx.compose.foundation.lazy.items

Adding that will then get that through.

You are missing an import. In your very screenshot, there is a link to action which will automatically import it for you. Try that.

Also, as a best practice, let code completion insert stuff for you as you type, since that will take care of adding the appropriate imports, hopefully.

Related