EpoxyProcessorException: Write model failed Caused by: java.lang.IllegalStateException: Type mirror does not exist for android.view.ViewParent
See original GitHub issueIntermittently getting the following error during kapt since updating to 4.4.1 (previously worked fine in 4.2.0):
error: EpoxyProcessorException: Write model failed
com.airbnb.epoxy.processor.EpoxyProcessorException: Write model failed
at com.airbnb.epoxy.processor.Logger.logError(Logger.kt:63)
at com.airbnb.epoxy.processor.Asyncable$DefaultImpls.awaitAndLog(Asyncable.kt:136)
at com.airbnb.epoxy.processor.Asyncable$awaitAndLog$1.invokeSuspend(Asyncable.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Caused by: java.lang.IllegalStateException: Type mirror does not exist for android.view.ViewParent
at com.airbnb.epoxy.processor.Utils.areParamsTheSame(Utils.kt:325)
at com.airbnb.epoxy.processor.Utils.getMethodOnClass(Utils.kt:290)
at com.airbnb.epoxy.processor.Utils.getMethodOnClass(Utils.kt:303)
at com.airbnb.epoxy.processor.Utils.implementsMethod(Utils.kt:266)
at com.airbnb.epoxy.processor.GeneratedModelWriter.addCreateHolderMethodIfNeeded(GeneratedModelWriter.kt:1103)
at com.airbnb.epoxy.processor.GeneratedModelWriter.generateDefaultMethodImplementations(GeneratedModelWriter.kt:1069)
at com.airbnb.epoxy.processor.GeneratedModelWriter.generateClassForModel(GeneratedModelWriter.kt:148)
at com.airbnb.epoxy.processor.GeneratedModelWriter.generateClassForModel$default(GeneratedModelWriter.kt:121)
at com.airbnb.epoxy.processor.EpoxyProcessor.writeModel(EpoxyProcessor.kt:104)
at com.airbnb.epoxy.processor.EpoxyProcessor.access$writeModel(EpoxyProcessor.kt:25)
at com.airbnb.epoxy.processor.EpoxyProcessor$processRound$6.invokeSuspend(EpoxyProcessor.kt:87)
at com.airbnb.epoxy.processor.EpoxyProcessor$processRound$6.invoke(EpoxyProcessor.kt)
at com.airbnb.epoxy.processor.Asyncable$map$2$invokeSuspend$$inlined$map$lambda$1.invokeSuspend(Asyncable.kt:30)
... 6 moreerror: EpoxyProcessorException: Write model failed
com.airbnb.epoxy.processor.EpoxyProcessorException: Write model failed
at com.airbnb.epoxy.processor.Logger.logError(Logger.kt:63)
at com.airbnb.epoxy.processor.Asyncable$DefaultImpls.awaitAndLog(Asyncable.kt:136)
at com.airbnb.epoxy.processor.Asyncable$awaitAndLog$1.invokeSuspend(Asyncable.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Caused by: java.lang.IllegalStateException: Type mirror does not exist for android.view.ViewParent
at com.airbnb.epoxy.processor.Utils.areParamsTheSame(Utils.kt:325)
at com.airbnb.epoxy.processor.Utils.getMethodOnClass(Utils.kt:290)
at com.airbnb.epoxy.processor.Utils.getMethodOnClass(Utils.kt:303)
at com.airbnb.epoxy.processor.Utils.implementsMethod(Utils.kt:266)
at com.airbnb.epoxy.processor.GeneratedModelWriter.addCreateHolderMethodIfNeeded(GeneratedModelWriter.kt:1103)
at com.airbnb.epoxy.processor.GeneratedModelWriter.generateDefaultMethodImplementations(GeneratedModelWriter.kt:1069)
at com.airbnb.epoxy.processor.GeneratedModelWriter.generateClassForModel(GeneratedModelWriter.kt:148)
at com.airbnb.epoxy.processor.GeneratedModelWriter.generateClassForModel$default(GeneratedModelWriter.kt:121)
at com.airbnb.epoxy.processor.EpoxyProcessor.writeModel(EpoxyProcessor.kt:104)
at com.airbnb.epoxy.processor.EpoxyProcessor.access$writeModel(EpoxyProcessor.kt:25)
at com.airbnb.epoxy.processor.EpoxyProcessor$processRound$6.invokeSuspend(EpoxyProcessor.kt:87)
at com.airbnb.epoxy.processor.EpoxyProcessor$processRound$6.invoke(EpoxyProcessor.kt)
at com.airbnb.epoxy.processor.Asyncable$map$2$invokeSuspend$$inlined$map$lambda$1.invokeSuspend(Asyncable.kt:30)
... 6 morewarning: The following options were not recognized by any processor: '[kapt.kotlin.generated, room.incremental]'
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
EpoxyModels are not working in feature modules/library ...
There is a problem with using that annotation on library project. For the moment you can use: @EpoxyModelClass abstract class MyModel ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Turning off
enableParallelEpoxyProcessing
seems to have fixed the issue for us.enableParallelEpoxyProcessing was experimental and is removed in 5.0.0