Error loading project in Android Studio: cannot load modules

前端 未结 6 1634
花落未央
花落未央 2020-12-08 12:55

When I Checkout a project form Google Cloud, Android Studio sais: \"2 modules cannot be loaded. You can remove them from the project\" and I cannot see the project. The erro

6条回答
  •  自闭症患者
    2020-12-08 13:25

    I had this issue in Android Studio 3.4 when I loaded an old project. I found some XML files in the .idea folder, including the file .idea/modules.xml.

    It contained multiple tags, some of these were duplicates of existing modules but these had incorrect paths, in the fileurl attribute. I closed the project, deleted these duplicate tags, and reopened the project. This resolved the error for me.

提交回复
热议问题