Android Studio:我不小心从项目中删除了我的app.iml文件,如何添加它

问题描述:

现在,我的项目将无法运行...这是在告诉我我的应用程序模块丢失了.有人遇到过这个问题吗?我不知道该文件中包含什么信息,所以我不知道该怎么办.任何建议,将不胜感激:-)

Now, my project will not run...it is telling me that my app module is missing. Has anyone had this problem before? I have no idea what information was in that file, so I dont know what to do. Any recommendations would be appreciated :-)

我打开了右侧的"Gradle projects"窗格,按住Alt键单击该项目,然后"refresh Gradle project",一切都已修复.

I opened the "Gradle projects" pane on the right, alt-clicked the project, then "refresh Gradle project" and all was fixed.