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


 

導入 安卓項目報錯


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' 

改低了之后, 這個問題解決了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM