找到File-Settings-然后直接在搜索框搜索 General 找到Auto Import选项,

然后选中Optimizes imports on the fly,和Add unambiguous imports on the fly 就OK了,如下图:

AndroidStudio自动导包、自动删除无用包

相关文章:

  • 2022-12-23
  • 2021-07-14
  • 2021-09-20
猜你喜欢
  • 2021-12-12
  • 2021-06-24
  • 2021-12-05
  • 2021-05-09
  • 2022-01-01
  • 2021-10-10
  • 2021-07-24
相关资源
相似解决方案