question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android Studio / Compilation is not supported

See original GitHub issue

Issue 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:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
monsieurtanukicommented, Jul 5, 2018

I uninstalled then re-installed Android Studio, then managed to make things work after about 2 hours of tries. Phew!

0reactions
cbalstercommented, Jul 4, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found