Guys, I have a problem using Kotlin & Android ...
# android
l
Guys, I have a problem using Kotlin & Android Studio 3.0 Beta 6. I always have crashes like this:
Copy code
FATAL EXCEPTION: main
kotlin.UninitializedPropertyAccessException: lateinit property headerAvatarImage has not been initialized
I know, it's a property that i've declared
lateinit
and when I access it is null, but.. it's ok. The code is ok, in fact, if I clean the project and run the app again, the app works without changing any lines of code. That's very strange and happens 50% of times when I deploy the apk on the device.