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

前端 未结 30 2422
无人及你
无人及你 2020-11-28 00:32

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 Modu

相关标签:
30条回答
  • 2020-11-28 01:19

    I had the same issue on androidStudio 3.2 and clonning the project worked for me

    0 讨论(0)
  • 2020-11-28 01:21

    If the above doesn't help you - check your module .iml file and see if it contains any errors. (for the app module it will be app.iml).

    0 讨论(0)
  • 2020-11-28 01:21

    Step 1 : Delete .iml file

    Step 2 : Check if your Project Directory Contain any white spaces if so then Rename your project directory leaving space

    ex:

    Before : My Project

    After rename : MyProject

    and open Android Studio...

    0 讨论(0)
  • 2020-11-28 01:23

    click File -> Invalidate Caches/ Restart doesn't help you anymore
    Delete .iml , .idea files & folders from file explorer not inside android studio

    1) Open android studio with different/another project

    2) import project newly not from recent

    3) build the project again

    sure it will work

    0 讨论(0)
  • 2020-11-28 01:24

    You may resolve by below process:

    1. In Android Studio, go to left panel, switch from Android to Project pane

    2. Expand .idea folder, you can see modules.xml and open the file.

    3. In the modules.xml file, you might see like below:

      <component name="...">
        <modules>
          <module fileurl="file://$PROJECT_DIR$/[check...].iml" filepath="$PROJECT_DIR$/[check...].iml" group="myProject" />
          <module fileurl="file://$PROJECT_DIR$/app/[check...]-app.iml" filepath="$PROJECT_DIR$/app/[check...]-app.iml" group="[check...]/app" />
    
    
    1. Check that match the module name correctly in module element

    2. And then, sync the gradle file

    0 讨论(0)
  • 2020-11-28 01:25
    1. save .idea folder somewhere else (for backup)
    2. remove .idea folder
    3. start AndroidStudio
    4. select project
    5. [there may be an error, ignore that]
    6. click File -> Invalidate Caches/ Restart
    7. click button: Invalidate Caches/ Restart
    8. resolved
    0 讨论(0)
提交回复
热议问题