airbnb / epoxy

Epoxy is an Android library for building complex screens in a RecyclerView
https://goo.gl/eIK82p
Apache License 2.0
8.51k stars 728 forks source link

Epoxy 5.0.0.+ Build failing on Java project #1376

Open zhvk opened 6 months ago

zhvk commented 6 months ago

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:

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