I had several unused imports in a Java file that were not used. Android Studio invited me to “ Optimize unused imports automatically on the fly . I clicked on it.
Now all unused imports are deleted automatically. Is there any way to get these settings back?
I am new to android, so please forgive me if I missed something simple.
source
share