Unsupported Modules Detected: Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project

我与影子孤独终老i 提交于 2020-01-23 04:46:10

问题


Unsupported Modules Detected: Compilation is not supported for the following modules: MemorandamApp. Unfortunately, you can't have non-Gradle Java modules and Android-Gradle modules in one project.

This Error caused to erase my files. Newly opened files are affected by this problem.


回答1:


1- close the project

2- close Android Studio IDE

3- delete the .idea directory

4- delete all .iml files

5- open Android Studio IDE and import the project

The answer is taken from HERE




回答2:


Switch to project mode and go to .idea/modules.xml & delete the invalid/not existing path . Then File => Invalidate Caches / Restart.



来源:https://stackoverflow.com/questions/56035306/unsupported-modules-detected-unfortunately-you-cant-have-non-gradle-java-modul

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!