您的位置:首页 > 移动开发 > Android开发

Could not find method android() for arguments on root project '项目名' of type org.gradle.api.Project.

2017-05-04 17:23 851 查看
Could not find method Android() for arguments 

[build_9m5ezt0p5zo7axieu78rb2u57$_run_closure2@3207872b] on root project ‘xx项目名xxx’ of type org.gradle.api.Project. Open File

解决方案: 

添加: 

apply plugin: ‘com.android.application’

其是可以理解为该 model 为一个 com.android.application 程序, 

也就是应用程序,如果你的 Model 是一个库,那么自然也就是: 

apply plugin: ‘com.android.library’

转自http://blog.csdn.net/jyp123123/article/details/56484280
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐