Android studio Error "Unsupported Modules Detected: Compilation is not supported for following modules"

215,619

Solution 1

First of all you should update to Android Studio 1.2 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.

Solution 2

1- close the project

2- close Android Studio IDE

3- delete the .idea directory located inside the project folder

4- delete all .iml files

5- open Android Studio IDE and import the project

Solution 3

Invalidate Caches and Restart did not work for me. I also updated all my Android Studio files with no success.

The solution I found was importing the android folder by clicking "Import project (Eclipse ADT, Gradle, etc.)" rather than clicking "Open an existing Android Studio Project" or dragging the folder onto the app icon.

Apparently the problem is caused because a module in the project has an *.iml file that does not contain external.system.id="GRADLE".

When you import the project (as opposed to opening it), the iml files are completely re-written, thus removing the error.

I found the info here: https://issuetracker.google.com/issues/37008041

Solution 4

Goto .idea/modules.xml & delete the invalid/not existing path <module />. Then File => Invalidate Caches / Restart.

Solution 5

Try this if it helps File -> Invalidate Caches / Restart.

If it still doesn't help click on the button in the image. 'Sync Project with Gradle Files'

enter image description here

Share:
215,619
sappu
Author by

sappu

Android Application Developer

Updated on July 18, 2022

Comments

  • sappu
    sappu almost 2 years

    I am using Android studio 1.0.1. I have a java module referred by other modules in my project. I have checked it out from SVN But now every

    Unsupported Modules Detected: Compilation is not supported for following modules: . Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.

    After getting this error AS stop compilation of this module so that I am not able to compile/run my project any more.