Android Studio: How to 'Refresh' after adding file?

后端 未结 4 613
不知归路
不知归路 2021-02-02 08:13

I am trying to add a layout to an Android project:

Right clicked on res folder New | Directory. The directory was created however not shown und

相关标签:
4条回答
  • 2021-02-02 08:17

    There is a view option right on top of the hierarchy folders (see attachment). Select "Packages"

    0 讨论(0)
  • 2021-02-02 08:31

    In the case of device files - right click on the directory in question in the Device File Explorer and click on 'Synchronize'

    0 讨论(0)
  • 2021-02-02 08:33

    Mac

    Cmd+fn+F9

    Windows

    Ctrl+F9

    0 讨论(0)
  • 2021-02-02 08:41

    If I find that Android Studio is out of synch with the file system I use File->Synchronize. Or equivalently, Ctrl+Alt+Y or the little circle with arrows menu button.

    0 讨论(0)
提交回复
热议问题