Open metheway opened 2 years ago
i tried @ModelView(autolayout, defaultlayout....) and even package-info.java to config, but none of them worked
well , there are some exception info: Caused by KotlinNullPointerException: null Stacktrace: com.airbnb.epoxy.ModelViewInfo.findMatchingSetter(ModelViewInfo.kt:292) com.airbnb.epoxy.ModelViewInfo.addProp(ModelViewInfo.kt:192) com.airbnb.epoxy.ModelViewProcessor.processSetterAnnotations(ModelViewProcessor.kt:171) com.airbnb.epoxy.ModelViewProcessor.process(ModelViewProcessor.kt:46) com.airbnb.epoxy.EpoxyProcessor.processRound(EpoxyProcessor.java:193) com.airbnb.epoxy.EpoxyProcessor.process(EpoxyProcessor.java:165) Execution failed for task ':ecp_admin_impl:kaptDebugKotlin'.
trace to the source code : val kotlinMetadata: KotlinClassMetadata? = viewElement.kotlinMetadata as? KotlinClassMetadata
if kotlinMetadata is null, then kotlinClassHeader must be null
two cases it would cause it null: KIND_FIELD_NAME == name && value is Int -> headerKind = KotlinClassHeader.Kind.getById(value)
METADATA_DATA_FIELD_NAME == name ->
data = @Suppress("UNCHECKED_CAST") (value as List
i can't understand why it would be null
epoxy:3.8.0
Any reason you are using a outdated version?
it works fine in an application module, while same code went kapt exception in an library module. epoxy:3.8.0 mavericks.2.2.0