Android Studio / Compilation is not supported
See original GitHub issueIssue Type
- Bug
- Build system related
Description and/or steps/code to reproduce the problem
With Android Studio 3.1.3, after cloning the latest master, I have the following error message:
Unsupported Modules Detected: Compilation is not supported for following modules: osmdroid.
Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
One impact is that now in this project Android Studio doesn’t even recognize Fragment
as a class.
My first guess is that it’s related to the latest merge (#1068) because:
- I assume that merge deals with build/gradle (as far as I understand those concepts)
- before I pulled the latest master everything worked fine - and I had a decently recent version
Environment
Version of osmdroid the issue relates to:
6.0.2
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Android studio Error "Unsupported Modules Detected
1) Go to File->Invalidate Caches / Restart. 2) Close android studio, Go to C:\Users\(Your UserName)\.AndroidStudio(version)\system and delete caches folder. If ...
Read more >Unsupported Modules Detected in Android Studio · Issue #1279
File -> Invalidate Caches / Restart. · Close the project and Android Studio. Remove the .idea directory and all .iml files. Reopen Android...
Read more >Android Studio error: "Compilation is not supported for ...
I have the same error message, but the app compiles and runs fine after showing it… Keep in mind that.
Read more >Android studio Error “Unsupported Modules Detected - iTecNote
Android studio Error “Unsupported Modules Detected: Compilation is not supported for following modules” · 1- close the project · 2- close Android Studio...
Read more >Android studio Error "Unsupported Modules Detected
Then you should go to File -> Invalidate Caches / Restart -> Invalidate Caches & Restart. Then try to build the application again....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I uninstalled then re-installed Android Studio, then managed to make things work after about 2 hours of tries. Phew!
@monsieurtanuki Weird, I have zero issues with Android Studio, also on 3.1.3 - in the past cleaning the cache and/or build -> rebuild project always solved similar issues for me. I’m pretty certain my commit is unrelated to your issues, since it mainly dealt with the travis configuration which is not involved at all in local builds.