epoxy: Build failed from version 2.0.0 to 2.2.0

throw below excepotion:

Error:Execution failed for task ':app:compileDevDebugJavaWithJavac'. java.lang.NoSuchMethodError: com.squareup.javapoet.ClassName.reflectionName()Ljava/lang/String;

and itโ€™s looks like occurs on Model with EpoxyModelClass annotation, such as

@EpoxyModelClass(layout = R.layout.footer_divider)
public abstract class BaseFooterDividerModel extends EpoxyModel<View> {
}

my dependences:

epoxyVersion = '2.2.0'

def libs = [
    epoxy   : "com.airbnb.android:epoxy:${epoxyVersion}",
    epoxyprocessor  : "com.airbnb.android:epoxy-processor:${epoxyVersion}",
]

appDependencies = [
    [configuration: "compile", dependency: libs.epoxy],
    [configuration: "annotationProcessor", dependency: libs.epoxyprocessor],
]

thanks for your help

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 41 (18 by maintainers)

Most upvoted comments

Finally solved this problem, thanks for your patient solution ๐Ÿ˜ƒ

have you seen https://github.com/rharter/auto-value-gson/issues/43 and https://github.com/rharter/auto-value-parcel/issues/64?

It seems like you can try add annotationProcessor 'com.squareup:javapoet:1.8.0' before your dagger line