For people who are accustomed to developing Android with Eclipse, the most common operation when importing jars is ctrl+shift+o, but when using Android studio, the default
The operation is alr+enter, but can only import one at a time, so we have to set it ourselves, and then the software will be automatically imported
Click File->setting to find the editor's General Auto Import, and then tick:
Show Import Popup when the declaration of the class you entered is not imported, a selection dialog box pops up.
Optimize imports on fly: This is actually the same as the shortcut key Ctrl+shift+o/ctrl+alt+o, which is to remove the unused declarations.
Add unambiguous imports on the fly: This is the automatic import function, when you enter the class name, the declaration is automatically imported.
How Android Studio sets up auto import price packs