https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
g

Guilherme Delgado

07/19/2022, 11:55 AM
Hello! I’m trying
1.2.0-alpha01-dev741
and I’m having problems importing androidx.compose.foundation.lazy.grid. With version 1.0.1 I was using*:*
Copy code
import androidx.compose.foundation.lazy.GridCells
import androidx.compose.foundation.lazy.LazyVerticalGrid
Now, with version 1.2.0-alpha01-dev741 I have to change to:
Copy code
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.GridCells
Otherwise the IDE throws an error. Up on changing the IDE doesn’t complain and finds the classes, but when I try to build I get the following:
Copy code
> Task :shared-ui-compose:compileDebugKotlinAndroid FAILED
Unresolved reference: grid
Unresolved reference: grid
Unresolved reference: LazyVerticalGrid
Unresolved reference: GridCells
Unresolved reference: item
@Composable invocations can only happen from the context of a @Composable function
@Composable invocations can only happen from the context of a @Composable function
What’s missing? 🤔
32 Views