Android Studio-无法从文件app.iml加载设置,文件不存在?

Android Studio-无法从文件app.iml加载设置,文件不存在?

问题描述:

当我直接使用Android Studio从在线git repos导入项目时遇到了这个问题,结果发现.idea modules.xml参考中的iml文件没有生成.

I faced this when importing projects from online git repos directly using Android studio, turns out the iml file in .idea modules.xml reference, were not being generated.

简单的转到项目根目录:

Simple goto project root:

  • 删除整个存储库中的所有.iml文件.
  • 确保android studio已关闭,然后输入".idea"文件夹.
  • 删除"modules.xml"文件(正在引用丢失的文件).
  • 在Android Studio中打开您的项目,它现在将生成缺少的.iml文件以及modules.xml文件.
  • 您将不会再看到烦人的弹出窗口!

希望有帮助.