epoxy icon indicating copy to clipboard operation
epoxy copied to clipboard

Epoxy 5.0.0.+ Build failing on Java project

Open zhvk opened this issue 1 year ago • 0 comments

I have added Epoxy (using the databinding implementation) to the project and it works but only with version 4.6.4.

It's an older Java-only project and all necessary dependencies have been updated in order to make Epoxy work.

When I update Epoxy to version 5.0.0 or any version above that, I'm getting following build error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileStageJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
EpoxyProcessorException: writeExtensionsForModels failed

Caused by: java.lang.IllegalArgumentException: Could not generate kotlin file com/darbalwatan/reservation/app/tickets2/epoxy/EpoxyProcessorKotlinExtensions.kt. The annotation processing environment is not set to generate Kotlin files.

I have tried 3 different implementations:

  • Setting up EpoxyConfig to automatically generate files based on layout prefix @EpoxyDataBindingLayouts({R.layout.epoxy_item_header})
  • Setting up EpoxyConfig with explicitly set layout files @EpoxyDataBindingPattern(rClass = R.class, layoutPrefix = "epoxy_item")
  • Using custom Epoxy View Holder (which at the moment didn't have any usages)

All of the above gave the same build error. Not sure what the issue is but lowering the Epoxy version seemed to work.

zhvk avatar Mar 27 '24 12:03 zhvk