27

Unsupported Modules Detected: Compilation is not supported for the following

modules: MemorandamApp. Unfortunately, you can't have non-Gradle Java modules and Android-Gradle modules in one project.

This Error caused me to erase my files. Newly opened files and created files are affected by this problem.

Karthik
  • 295
  • 1
  • 11
Madhuslin KS
  • 445
  • 1
  • 6
  • 16

3 Answers3

45

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

The answer is taken from HERE

D_Alpha
  • 4,039
  • 22
  • 36
10

Switch to project mode and go to .idea/modules.xml & delete the invalid/not existing path . Then File => Invalidate Caches / Restart.

Tamilarasu M
  • 119
  • 1
  • 3
2
  • Clear all cache
  • Close the project
  • delete .idea folder and .iml files
  • Reopen the IDE and project
Karthik
  • 295
  • 1
  • 11