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

During Application Compilation -- [ksp] EpoxyProcessorException: EpoxyAttribute annotations must not be on private fields without proper getter and setter methods. (class: ValueItem, field: itemClickListener) #8973

Open
kayabilal4440 opened this issue Dec 27, 2024 · 3 comments
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@kayabilal4440
Copy link

Steps to reproduce

When I compile the 'main' and 'develop' branches, I get this error even though I haven't made any changes. I have added the build logs, exceptions and my version information below. Can you help me understand what is causing this error?

-- Exception --

Task :library:external:jsonviewer:kspDebugKotlin FAILED
e: [ksp] EpoxyProcessorException: EpoxyAttribute annotations must not be on private fields without proper getter and setter methods. (class: ValueItem, field: itemClickListener)
com.airbnb.epoxy.processor.EpoxyProcessorException: EpoxyAttribute annotations must not be on private fields without proper getter and setter methods. (class: ValueItem, field: itemClickListener)
at com.airbnb.epoxy.processor.Utils.buildEpoxyException(Utils.kt:56)
at com.airbnb.epoxy.processor.Logger.logError(Logger.kt:61)

Build_Logs.txt
Exception_Log.txt

-- Exception image
exception_image

-- My pc versions
pc_info_version_image
image_version

Outcome

What did you expect?

What happened instead?

Your phone model

Samsung A54

Operating system version

Android 14

Application version and app store

Element v1.6.26

Homeserver

No response

Will you send logs?

Yes

Are you willing to provide a PR?

Yes

@kayabilal4440 kayabilal4440 added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Dec 27, 2024
@onurays
Copy link
Contributor

onurays commented Dec 27, 2024

@kayabilal4440 can you please check org.billcarsonfr.jsonviewer.ValueItem class and see if below definition is private or not in your version:

@EpoxyAttribute(EpoxyAttribute.Option.DoNotHash)
var itemClickListener: View.OnClickListener? = null

@kayabilal4440
Copy link
Author

@onurays
error
In my version it's public.

@onurays
Copy link
Contributor

onurays commented Dec 28, 2024

I got a fresh checkout develop with gradle v8.6 and it is built successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

2 participants