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

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

2017-02-22 13:56 1231 查看
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’
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  as android
相关文章推荐