Compilation is not supported for following modules: xxxxxx, app.Unfortunately you can 't have non...

Android studio 升级到3.2以后总是会有莫名的bug

今天新建项目,运行项目后提示

Compilation is not supported for following modules: xxxxxx, app.Unfortunately you can 't have non-Gradle Java modules and Android-Gradle modules in one project.

项目报红J

Compilation is not supported for following modules: xxxxxx, app.Unfortunately you can 't have non..._第1张图片

首先 File=>Invalidate Caches 重启一次,项目红J消失。


Compilation is not supported for following modules: xxxxxx, app.Unfortunately you can 't have non..._第2张图片

然后把这个选择去掉 同步一下 gradle 项目就可以正常运行了

你可能感兴趣的:(Compilation is not supported for following modules: xxxxxx, app.Unfortunately you can 't have non...)