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

Luca Nicoletti

08/21/2019, 7:58 AM
Yesterday I was playing around with Jetpack Compose and I found out there’s a new
Compose Activity
from the
New File > Activity
menu. This creates some files but the code inside of them is broken. any clue? 🙂
k

kioba

08/21/2019, 9:17 AM
what was the error?
l

Luca Nicoletti

08/21/2019, 9:27 AM
It looks like it tries to create a
@Composable
function which should also use
@GenerateView
annotation, which is not present anymore
The activity created use a
setContentView(ComposableFunction.generateView()
which is broken as
ComposableFunction
is not a View 🙂