Android Studio:添加文件后如何“刷新"? [英] Android Studio: How to 'Refresh' after adding file?

查看:69
本文介绍了Android Studio:添加文件后如何“刷新"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向 Android 项目添加布局:

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

右键单击res 文件夹New |目录.该目录已创建,但未显示在 app/res 下.也许是因为默认情况下隐藏了空目录?转到 Windows 资源管理器并将文件添加到新创建的目录(隐藏在 Android Studio 中).回到 Studio,如何刷新"项目结构以显示新创建的目录及其下的文件?

Right clicked on res folder New | Directory. The directory was created however not shown under app/res. Maybe because empty dirs are hidden by default? Went to Windows explorer and added a file to the newly created directory (hidden in Android Studio). Back in the Studio, how can I 'refresh' the project structure to show the newly created directory and the file under it?

基本上我的问题是,Eclipse 的刷新"菜单选项的替代方法是什么?

Essentially my question is, what is the alternative to Eclipse' Refresh menu option?

推荐答案

如果我发现 Android Studio 与文件系统不同步,我会使用 File->Synchronize.或者等效地,Ctrl+Alt+Y 或带有箭头菜单按钮的小圆圈.

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.

这篇关于Android Studio:添加文件后如何“刷新"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆