Status Update
Comments
ph...@gmail.com <ph...@gmail.com> #2
This error is shown (near location of Event Log) even after invalidating cache. However, if I invalidate cache, the build succeeds and I can run the app und Studio 3.6
vi...@google.com <vi...@google.com> #3
ph...@gmail.com <ph...@gmail.com> #4
vi...@google.com <vi...@google.com>
ph...@gmail.com <ph...@gmail.com> #5
I noticed multiple *.iml files being created in the gradle module in question during gradle sync.
I removed my .idea folder and then restarted Android Studio, and re-imported my project, and that appeared to have completely get rid of this "Unsupported modules detected" error permanently.
xa...@google.com <xa...@google.com>
so...@google.com <so...@google.com> #6
Could you share your .gitignore
file in the root of your project? (assuming you used Git).
Unless you indeed have modules created in IDEA, it usually means that your .idea/modules.xml
file references .iml
files that do not exist. The common cause is incorrectly set up .gitignore
file which ignores .iml
files but not .idea/modules.xml
. It is safe to ignore this error in this case or you can fix it by deleting all the '.iml
files and your .idea/modules.xml
. Please make sure you have a backup copy of your project.
ph...@gmail.com <ph...@gmail.com> #7
so...@google.com <so...@google.com> #8
Thank you!
so...@google.com <so...@google.com> #9
Could you let us know if you use branches in Git (or the VCS you use) and whether you switch branches from within the IDE?
ph...@gmail.com <ph...@gmail.com> #10
so...@google.com <so...@google.com> #11
Android Studio will now drop any empty modules not registered with Gradle or any other external system such that their .iml
files do not exist. This will prevent this error message (which is more like a warning) and, moreover, prevent unwanted changes to the names of modules created from the Gradle project in the IDE.
ta...@gmail.com <ta...@gmail.com> #12
This has been really frustrating experience. Not only this warning but having duplicate .iml
files is also an issue.
Is there a way that this gets picked into 4.0
?
so...@google.com <so...@google.com> #13
If you don't use a custom .gitignore
and get duplicate .iml
files please file a new bug and describe the way you get them. We know that there are scenarios not involving .gitignore
but we don't know how to reproduce them. Thank you!
Description
all required information.
Studio Build: 3.6.0 rc03
Version of Gradle Plugin: 3.6.0-rc03
Version of Gradle: 5.6.4
OS: Win10
Steps to Reproduce:
1. Create an Android Studio v3.5.x project that also contains an Android gradle library module and java only module
2. Assemble and load project into device/emulator to confirm it is working
3. Now try to open and run the project in Android Studio 3.6 v3.6.0-rc03