Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epoxy 5.0.0.+ Build failing on Java project #1376

Open
zhvk opened this issue Mar 27, 2024 · 0 comments
Open

Epoxy 5.0.0.+ Build failing on Java project #1376

zhvk opened this issue Mar 27, 2024 · 0 comments

Comments

@zhvk
Copy link

zhvk commented Mar 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant