Ladies and Gentlemen, whoever faced a similar prob...
# android
h
Ladies and Gentlemen, whoever faced a similar problem? I am using Android Studio 4.0 Canary 4 and when using kotlinx.synthetic I get NPE
l
You sure you’ve included the right file?
kotlinx.synthetic
can point to the wrong file if the same id is used in several
xml
files
h
@Luca Nicoletti yes
this is - ok
Got NPE, button_save is null
On Android studio 3.5.2 everything works as it should...🤔
s
What's your gradle version and the kotlin version? Kotlin EAP might be screwing things up a little
I just checked on the latest Canary build with Kotlin 1.3.60 and gradle 4.0.0-alpha04 and all my view holder synthetics are working fine, the only difference from yours is I'm not using Moxy
h
I found a problem.
gradle-wrapper.properties: distributionUrl=******/*gradle-6.0-rc*-*.zip It is necessary to use the stable version =) On gradle-6.0-all.zip - everything is ok
z
Something to keep in mind for the future, there are also women in this slack, not just gentlemen 😉
i
I am suprising you are not using Jetpack Compose on AS 4.0
h
@itnoles While exploring Jetpack Compose)
@Zach Klippenstein (he/him) [MOD] Yes you are absolutely right 😅