My Android project can't run after upgrading intellij.
Answered
2024.3.4
I have a 12-year project that hasn't been worked on since the summer. Now for some reason i can't run it anymore, although the project structure has not changed in years.
error message:
Compilation is not supported for the following modules: android.app. Unfortunately, you can't have non-Gradle Java modules and Android-Gradle modules in one project. If you didn't add those intentionally, consider removing them by selecting the option below
Please sign in to leave a comment.
Hi Mathias,
It is a recent issue fixed just yesterday: https://youtrack.jetbrains.com/issue/IDEA-360152
Hopefully, the fix will be included in 2024.3.1 scheduled for release on December 3.
Until then, please use version 2024.2.4 if the project is critical for you.
Thanks and sorry for the inconvenience.
hey thanks for quick response. OK thats unfortunate, Might i ask how it came to be? Has there been some change to recommended project structure that i maybe should look into?
The notification was designed for Android Studio where it makes sense since Studio doesn't support opening / importing non-Android projects. It was enabled in IntelliJ IDEA by mistake. IDEA is able to open both Android and non-Android projects, so it shouldn't be shown there at all. We've suppressed it.
But this is an Android project.
Yes, and IntelliJ IDEA can open it just fine. It is not a matter of the project structure being corrupted. Android plugin just performs an unneeded project structure check and throws a false notification in the process.
Gotcha, thanks!