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 项目"窗格,按住 alt 键单击该项目,然后刷新 Gradle 项目",一切都已修复.

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