I have an IntelliJ 14.1.2 Project consisting of two modules - one is an Android Gradle based module and the other is a Spring Java-based module with Maven.
gps-track
This solution worked for me Android Studio 3.3.2.
1- close the project
2- close Android Studio
IDE
3- delete the .idea
directory
4- delete all .iml
files
5- open Android Studio
IDE and import the project
Answer from here
None of above worked for me but tried something random and it worked.
PS: You must have original corrupted project. (Means, copy it without tampering project structure)
The ultimate solution to this error:
Step 1 Go to File -> Invalidate Caches/Restart.
Step 2 Close the project.
Step 3 Go to project folder and delete .idea folder.
Step 4 Delete YourProjectName.iml in project folder.
step 5 You will see a folder below graddle folder, Delete YourProjectName folder (it contains another YourProjectName.iml file).
Step 6 Open Android studio -> open existing project, and then select your project.
**
**
Step 1: Open the Corrupted Project (The one showing error).
Step 2: Open system.gradle file.
step 3: add this line of code include ':app'
.
Step 4: click on the sync, to sync the gradle file.
First of all you should update to Android Studio Source: https://code.google.com/p/android/issues/detail?id=77983
Then you should go to File -> Invalidate Caches / Restart -> Invalidate Caches & Restart.
Then try to build the application again.
I found this answer here
This may be resolved by fixing .idea/modules.xml
Check for https://stackoverflow.com/a/61343944/11910757