How to set auto import for Kotlin in Android Studio?


#1

I can only find auto import options for XML, Java and C/C++ in preferences, but how can I make auto import work for Kotlin in Android Studio?


#2

Auto import for Kotlin is always enabled. What exactly do you want to configure?


#3


#4

You’re typing the name manually. If you select “Gson” from the completion list instead, it will import the name for you automatically.


#5

In Java there is an option to auto-import the thing being typed without clicking on the list. Unambiguous imports.