The Missing Kotlin Support in Android Studio 3.0

Officially Supported

Kotlin is now officially support in Android Studio 3.0!! Yeah!!!

My blog below could be literally throw away I guess.

Wait!! One thing is missing!!

So happily, I tried downloading Android Studio 3.0 Preview (Canary 1). Everything is good. Just click Include Kotlin Support checkbox will do, and create your Kotlin Class

All good… until I have my layout ready, and want to get my resource component directly.

Unresolved Reference: my_title

my_title is the id I gave to my TextView, but Kotlin just can’t find it, and it keep proposing importing the my_title as resource int.

The reason:

--

--