androidstudio2-2 Exercise 2: Auto Import on the Fly ==================================================== State on the Rabbit 2 install the chapter was written from (yours may differ): Java Add unambiguous imports on the fly off Java Optimize imports on the fly off Kotlin Add unambiguous imports on the fly off Kotlin Optimize imports on the fly off Steps 1. Settings > Editor > General > Auto Import. In the Kotlin block tick "Add unambiguous imports on the fly". Click OK. 2. In a scratch Kotlin file (for example a new file in your project's package) write: val today = LocalDate.now() 3. Look at the top of the file. With the option ON, an import line for java.time.LocalDate should be added without any prompt (only one class of that name is on the classpath, so the name is "unambiguous"). With the option OFF, the name stays red until you press Alt+Enter and choose the import. Notes - I did not run this, so the exact moment the import appears (as you finish typing the name, or after the line is complete) is not confirmed here. If it does not appear, check that the file is a Kotlin file and that the project has finished its Gradle sync. - Keep or revert: it is personal taste. Keep it if you write a lot of Compose code. Leave "Optimize imports on the fly" off if you dislike unused imports vanishing mid-edit. - Delete the scratch file afterwards; it is not part of the course project.