3步解决AS提示:Compilation is not supported for following modules

问题:
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
3步解决AS提示:Compilation is not supported for following modules_第1张图片
解决方案:
1、打开modules.xml文件(位置:根目录.idea\modules.xml)
2、删除提示的、不存在的module配置并保存
3、重新打开项目即可

出现原因:
【可能】【也许】是暴力删除(直接去根目录强制删除)项目中某个module,配置没删干净。

你可能感兴趣的:(安卓,Android,Studio,build,android,android,studio)