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

A. Sachdeva

02/27/2021, 10:35 AM
hi, I upgraded to compose beta 1.00 and my current project that i created a day ago started showing error for
setContent{
and
LazyColumn{
what are the new alternatives for these?
j

jaqxues

02/27/2021, 10:38 AM
setContent has been moved to another artifact
androidx.activityactivity compose1.3.0-alpha03
☝️ 1
a

A. Sachdeva

02/27/2021, 10:40 AM
ok let me try that. same for lazyColumn?
j

jaqxues

02/27/2021, 10:41 AM
That one should still be in the same one (I think compose foundation)
Though I think it is just LazyColumn without the for, and the items has been deprecated Check the new APIs out in the docs, a lot has changed
t

Timo Drick

02/27/2021, 10:44 AM
Often removing the imports and using auto import works when packages moved.
j

jaqxues

02/27/2021, 10:44 AM
well thats clearly not the issue here
but agree, alt enter is your friend
t

Timo Drick

02/27/2021, 10:47 AM
Yes sorry. LazyColumnFor was removed. Did not looked into your code.
a

A. Sachdeva

02/27/2021, 11:27 AM
this worked, thanks!