5

In Jetpack Compose Basic Codelab Animation Section (using Jetpack Compose Beta 01)

https://developer.android.com/codelabs/jetpack-compose-basics?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fcompose%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fjetpack-compose-basics#6

If we copy and paste follow the code, there will be an error as shown below.

Cannot find a parameter with this name: items

enter image description here

What is missing?

Elye
  • 53,639
  • 54
  • 212
  • 474

2 Answers2

7

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.

Elye
  • 53,639
  • 54
  • 212
  • 474
0

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.

Richard Onslow Roper
  • 5,477
  • 2
  • 11
  • 42