Error generating model classes Caused by IllegalArgumentException: modifiers [protected, abstract] must contain one of [public, private]
See original GitHub issueBuild failed with :
e: error: Epoxy Processor Exception: Error generating model classes Caused by IllegalArgumentException: modifiers [protected, abstract] must contain one of [public, private] Stacktrace:
com.airbnb.epoxy.ModelBuilderInterfaceWriter.writeInterface(ModelBuilderInterfaceWriter.kt:57)
com.airbnb.epoxy.GeneratedModelWriter.generateClassForModel(GeneratedModelWriter.kt:174)
com.airbnb.epoxy.GeneratedModelWriter.generateClassForModel$default(GeneratedModelWriter.kt:134)
com.airbnb.epoxy.ModelProcessor.writeModel(ModelProcessor.kt:85)
com.airbnb.epoxy.ModelProcessor.processModels(ModelProcessor.kt:69)
com.airbnb.epoxy.EpoxyProcessor.processRound(EpoxyProcessor.java:187)
com.airbnb.epoxy.EpoxyProcessor.process(EpoxyProcessor.java:165)
> Task :lib:kaptDebugKotlin FAILED
Creating this issue to add more information in the error message.
I am still not sure what is the cause, the change we made was to move some epoxy code from app module to a library module.
epoxyVersion = '3.3.0'
gradle_android_version = '3.2.1'
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
EpoxyModels are not working in feature modules/library ...
1 Answer 1 ... There is a problem with using that annotation on library project. ... No, if the layout is in the...
Read more >Chapter 8. Classes - Oracle Help Center
Class Modifiers. A class declaration may include class modifiers. ClassModifier: (one of) Annotation public protected private abstract static final strictfp.
Read more >OOP Inheritance & Polymorphism - Java Programming Tutorial
A class called Author is designed as shown in the class diagram. It contains: Three private member variables: name ( String ), email...
Read more >checkstyle – Class Design
The check finds classes that have overridable methods (public or protected methods that are non-static, not-final, non-abstract) and have ...
Read more >JML Reference Manual - Department of Computer Science
name, and the fact that the class is both public and abstract. ... the extra JML modifiers, one should think of this field,...
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
How to add model information to trace this error, I am now facing same error but no clue of the issue.
I will try to find the models, the error was not verbose enough to give the culprit (and we have a lot). It happen with no change except move the models from a app module to a lib module. May be a kapt flag missing in our new lib module…