首页 > 移动平台 > 详细

The module is an Android project without build variants, and cannot be built

时间:2019-01-14 14:16:56      阅读:532      评论:0      收藏:0      [点我收藏+]

 

导入 安卓项目报错


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.

看不出来什么鬼问题?

百度一下

https://stackoverflow.com/questions/49834961/the-module-app-is-an-android-project-without-build-variants

参考,看了一下。

将 classpath grdle 版本改低一些。  之前是  3.2.0 是最新的版本了。估计最新版有兼容性问题吧。

将  classpath ‘com.android.tools.build:gradle:3.1.0‘ 

改低了之后, 这个问题解决了

The module is an Android project without build variants, and cannot be built

原文:https://www.cnblogs.com/xgjblog/p/10266019.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!