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

 

導入 安卓項目報錯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.app

看不出來什麼鬼問題?gradle

百度一下ui

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

參考,看了一下。it

將 classpath grdle 版本改低一些。  以前是  3.2.0 是最新的版本了。估計最新版有兼容性問題吧。io

將  classpath 'com.android.tools.build:gradle:3.1.0' class

改低了以後, 這個問題解決了module

相關文章
相關標籤/搜索