-
Notifications
You must be signed in to change notification settings - Fork 365
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
Can not annotate with R constants #142
Comments
did you ever get this working? i'm surprised no one else has mentioned this issue since it immediately happened when i tried to use the project. |
No I decided to use vanilla RecyclerView in that project. Maybe issue was caused by multi module architechture, I don't know |
I have the same issue |
has anyone fixed this issue yet? |
Cannot use an annotation in library module to bind to a resource in app module. Because, All of library will be build and process annotation before build app module. So that, the resource id always is 0. |
Thank you sir. This method work for me. |
Found a working solution. Change module lib to dynamic future module. |
Having strange bug:
Trying to use it like this
But Studio underlines all R.layout/R.id usages and says that An annotation argument must be a compile-time constant. If I try to compile, I get:
If I use generated constants it fails with runtime exception (res not found)
Used versions:
If I use old version (0.7.3) I have the same issue
Used plugins:
kotlin version: 1.2.51. Everything works with usual RecyclerView
The text was updated successfully, but these errors were encountered: