Reputation: 695
I'm trying to clone a project from BitBucket to my Android Studio. Finally it ends up with the error .iml file does not exist. What am I doing wrong?
Edit:- Once project is loaded from my repo, it says Error loading project. Two modules can not be loaded, those two modules are .iml files.
Upvotes: 29
Views: 29367
Reputation: 733
Go to Settings > Build, Execution, Deployment > Gradle > check generate *.iml files for modules imported from gradle. After change settings, resync project, iml files will be generated.
Upvotes: 0
Reputation: 1551
In .idea folder delete modules.xml and restart Android Studio.
This will resolve the error by regenerating and linking the files again.
Upvotes: 0
Reputation: 1106
I have solved this issue in android studio by following steps -
1. Close Android Studio
2. Go to my app codebase directory
3. Delete the .idea folder
4. Start the Android studio again.
It's working like wow.
Upvotes: 6
Reputation: 829
In my case, it didn't work to download my repository again, I had to update Android Studio from 3.3 to 3.4.
I don't know if it's an isolated case or if someone else can solve this problem in the same way.
Upvotes: 0
Reputation: 617
I faced similar problem, It just solved for by following steps - 1. Close you IntelliJ 2. Go to your codebase directory 3. delete the .idea folder 4. Start the Intellij again.
Upvotes: 38
Reputation: 608
i figured out that i was not having settings.gradle in my github content
include ':app'
Upvotes: 0
Reputation: 2289
It happened to me when I open my app from Android Studio's "Open Recent" option after cloning from my repository. Just close the app and re-open from "Open" option. It worked for me.
Upvotes: 43