Could not find method android() for arguments on root project '项目名' of type org.gradle.api.Project.
来源:互联网 发布:淘宝刷客收入揭秘 编辑:程序博客网 时间:2024/05/02 02:44
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’
0 0
- Could not find method android() for arguments on root project '项目名' of type org.gradle.api.Project.
- Could not find method android() for arguments on root project '项目名' of type org.gradle.api.Project.
- Could not find method compile() for arguments [project:'lib'] on root project ''
- Build gradle : Could not find method packagingOptions() for arguments root Project “fasterDev”
- Could not find method android() for arguments when building Android project from gradle
- Could not find method android() for arguments
- 解决 Gradle 2.0后 : Could not find property 'Compile' on root project 的问题
- After upgrading to Gradle 2.0: Could not find property 'Compile' on root project
- Could not find method runProguard() for arguments [false] on BuildType_Decorated{
- Could not find method runProguard() for arguments [false] on B...
- Could not find method jcenter() for arguments [] on repository container
- Gradle sync failed: Could not find method android() for arguments [build_aj7feyco0x5e5hj3g6wttaj6$_
- 错误:Gradle sync failed: Could not find method android() for arguments [build_6d4hiu27bgm2ho4bez6d80wx
- Gradle构建失败:报错Could not find method android() for arguments
- Android Studio Exception: Could not find method android() for arguments
- Android Studio Exception: Could not find method android() for arguments
- Android Studio:Could not find method android() for arguments
- Android Studio Could not find method runProguard() for arguments?
- 前端渲染与后端渲染
- Quartz表达式详解
- [Android 编译(一)] Ubuntu 16.04 LTS 成功编译 Android 6.0 源码教程
- Java中多线程的介绍
- UITextView用法总结
- Could not find method android() for arguments on root project '项目名' of type org.gradle.api.Project.
- java 注解
- 快速幂 UVA
- SaltStack 部署及入门
- 英文系统下execl2010汉字显示错乱原因和解决方法
- 怎样用 Android Annotations 写出高性能代码
- AndroidStudio 导入源码
- ORACLE 数据库表结构更改语句
- stream-data-platform-2/