How to set auto import for Kotlin in Android Studio?


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?


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



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


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