I'm new to Jetpack Compose. Studying with codelab, I wondered that what happened to the function with @Compose annotation. So I downloaded the androidx github and searched for the annotation handling @Compose, But I couldn't find the annotation processor. Where is the annotation processor of @Compose annotation?
CodePudding user response:
The compose does not run on annotation processor. It runs on Kotlin Compiler Plugin, which is a lower level layer.
You can lookup the compiler source here
To be more specific, compiler plugin is looking for functions with @Composable
annotation here
CodePudding user response:
check whether gradle is missing
androidx.compose.runtime:runtime:$version