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.

EpoxyModelClass subclasses are not generating

See original GitHub issue

Subclasses are not being generated for EpoxyModelClass (picture included below). The EpoxyModelClass is also missing the layout property to be overwritten within our models (@EpoxyModelClass(layout = R.layout.model_button) gives “cannot resolve method layout” error). This is our EpoxyModelClass.java: image

And this is yours: image

Generated subclasses are not recognized in SampleAdapter.java. image

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
elihartcommented, Dec 18, 2017

@juicycleff if you are using kotlin you need to use kapt instead of annotationProcessor

2reactions
elihartcommented, Feb 8, 2017

Yeah, that annotation update is only available starting in the 1.6.1 release https://github.com/airbnb/epoxy/pull/112 which I am about to push.

Sorry for the confusion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Epoxy does not generate model class? - Stack Overflow
I want to use Epoxy for my recyclerView with kotlin, but Epoxy Model does not generate PostModel_() class, what wrong with it?
Read more >
alipay404 / epoxy Download - JitPack
A model class annotated with @EpoxyModelClass will always have a subclass generated. There are several cases where it may be useful to use...
Read more >
EpoxyModel (epoxy-adapter 2.14.0 API) - Javadoc.io
This is used internally by generated models to do validation checking when "validateEpoxyModelUsage" is enabled and the model is used with a EpoxyController...
Read more >
How does Airbnb do it? Epoxy! - Medium
The RecyclerView adapter will use the NameOfModel_ notation to represent generated subclasses and the subclasses will be generated at runtime. So do not...
Read more >
SimpleEpoxyModel (epoxy-adapter 2.10.0 API) - AppDoc
This allows you to just provide the layout instead of needing to create a separate EpoxyModel subclass. This is useful for static layouts....
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