Hi Everyone, While in Android Studio, i tried to E...
# multiplatform
s
Hi Everyone, While in Android Studio, i tried to Enable Kotlin K2 Mode, and then after restarting and opening project again, i found out that Intelli sense is not working, not getting any suggestions while writing code, i m not even able to go any file using Cmd + Click. Just wanted to know is this intentional or i am missing something somewhere? Also While enabling it, it says some features are not supported, exactly which features are not supported, Are code suggestion, Go To File etc are also some of them?
👍 1
d
Its in beta so this behavior is expected.
s
Thanx @Daniel Weidensdörfer, But if suppose at this stage if i want to test explicit backing field, then i will have to work without all these features which dont work with K2 mode, right?😀
d
You should be able to use 2.0 features when Kotlin 2.0 is your compiler version, regardless of K2 mode being enabled. K2 mode is about the ide and it will give you an error in K1 mode. However I tried K2 mode in IntelliJ and there it worked well on Kotlin files.
s
Thats what i was expecting, but when i tried to use explicit backing field, it showed this error:
Copy code
Explicit backing field declarations are not supported in FE 1.0
, and then i enabled K2 mode, and then that error was gone . but then few features stopped working. Not sure why its not working for me with while using 2.0 compiler. Even after creating new project from kmp jetbrains wizard, it didnt worked for me, showed the same errror
s
I already tried that, they also suggest to enable k2 mode and specifying explicitly in gradle.