It seems like Kotlin Synthetics for Android Views ...
# android
r
It seems like Kotlin Synthetics for Android Views does not work anymore in version 1.6. When using version 1.5.31 it works normally. I saw it was deprecated but should at least continue to work. Any suggestions to get it to working with v1.6? My error is in thread
🎉 1
Copy code
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference
        at com.packge.TeamHolder._$_findCachedViewById
u
try to use viewBinding
💯 2
😂 2
r
that's not my question, I know the alternatives. They required a huge refactor which the client does not want
u
sorry for trying to help
😂 4
n
This scared me so I tested in a demo project with synthetics with 1.6 and it’s working as expected so I think the error is something specific to your setup and not 1.6 completely breaking synthetics
k
I thought I remember seeing an error message saying that it would go away. I don't believe you can use it in 1.6
m
looks like it will be fixed in 1.6.10: https://youtrack.jetbrains.com/issue/KT-49799
r
thnx, helpfull