3步解决AS提示:Compilation is not supported for following modules_生猛咸鱼的博客-CSDN博客

问题: Compilation is not supported for following modules: 【YourProject】-phone-lib. Unfortunately you can’t have non-Gradle Java modules and Android-Gradle modules in one project 解决方案: 1、打开modules.xml文件(位置:项目所在根目录.idea\modules.xml) 2、删除提示的、不存在的module配置并保存 3、重新打开项目即可 出现原因: 【可能】【也许】是暴力删除(直接去根目录强制删除)项目中某个module,配置没删干净。