Android导入项目编译报错:
Error:The module 'app' is an Android project without build variants, and cannot be built. Please fix the module's configuration in the build.gradle file and sync the project again.
问题点:
gradle版本不匹配,如下图
解决方案:
修改其版本(改为和本地其他项目相同即可):
classpath 'com.android.tools.build:gradle:3.0.1'