问题
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.
回答1:
Simple goto project root:
- Delete any .iml files in the whole repo.
- Make sure android studio is closed, and enter ".idea" folder.
- Delete the "modules.xml" file (where the missing files are being referenced).
- Open your project in Android studio, and it will now generate the missing .iml files, as-well as the modules.xml file.
- You will no longer get the annoying popup any longer!
Hope it helps.
来源:https://stackoverflow.com/questions/59840873/android-studio-cannot-load-settings-from-file-app-iml-file-does-not-exist