question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EpoxyProcessorException: Write model failed Caused by: java.lang.IllegalStateException: Type mirror does not exist for android.view.ViewParent

See original GitHub issue

Intermittently 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:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
apramanacommented, Mar 16, 2021

Turning off enableParallelEpoxyProcessing seems to have fixed the issue for us.

0reactions
elihartcommented, Nov 28, 2021

enableParallelEpoxyProcessing was experimental and is removed in 5.0.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found