方式一:Android studio只有导单个包的快捷键:Alt+Enter。
方式二:设置自动导所有的包
点击File→Setting,Setting→Editor→General→Auto Import,勾选Add unambiguous imports on the fly即可自动导包,点击apply→OK
时间: 2024-10-12 03:07:31
点击File→Setting,Setting→Editor→General→Auto Import,勾选Add unambiguous imports on the fly即可自动导包,点击apply→OK