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

前端 未结 30 2321
无人及你
无人及你 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:04

    I had the exact same error and it was so annoying to see the alert every time I stared Android Studio. I tried the solution mentioned above including invalidating cache, restart etc, nothing made it go away.

    In my case, we had a module that was deleted from source and the reference also removed from settings.gradle. Turns out, .idea/modules.xml was still referencing that module.

    All I needed to do was remove that line from <modules> in .idea/modules.xml and it made it all go away.

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

    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

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

    Invalidating caches/Restart didn't worked for me. But simply deleting the caches folder in \Users\user.AndroidStudio(version)\system worked like a charm

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

    Close the Android Studio and Move ".idea" Folder and paste it outside Project root folder( For Back up if you need).

    Open the Android studio. On Opening the project it"ll ask add module (app) to your project. You can ignore the same.

    It set set default build variant to be "debug". You can see build variant tab on left corner or hover on "Monitor" Symbol on left bottom

    Note: No need to change your .iml file of your project.tom to get build variant option and "Invalidate Cache and Restart" will also not work rather it will clear your history files too!.

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

    In my case settings.gradle contained invalid configuration.

    I changed:

    include ':app'
    rootProject.name='<somthing else>'
    

    To:

    include ':app'
    

    Error is gone. So maybe check your settings.gradle for potential errors. If this won't work try to remove cache and other tips.

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

    In my case I cloned a git-project where both Java and Kotlin included. Then checked another branch and pressed "Sync Project with Gradle Files". Android Studio 3.0.1.

    0 讨论(0)
提交回复
热议问题