Gradle DSL method not found: 'android()
来源:互联网 发布:excel制作数据录入窗体 编辑:程序博客网 时间:2024/05/19 17:51
原文错误提示:
Error:(16, 0) Gradle DSL method not found: 'android()'
Possible causes:<ul><li>The project ‘XXXXXXX' may be using a version of Gradle that does not contain the method.
<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
错误原因:
android studio 引进项目时,自动查找本机是否有项目设置的SDK版本,若发现没有,我们会在project structure修改成自己的SDK。然而,修改后,AS会自动在项目下的build.gradle里添加上以下代码:
解决办法:
删除以上图片中红框中的代码,然后再执行build->Rebuild project,删除完之后的代码如下:
21 4
- 解决gradle DSL method not found: android()
- Gradle DSL method not found: 'android()
- 解决Gradle DSL method not found: ‘android()’
- 解决 Gradle DSL method not found: 'android()'
- 解决Gradle DSL method not found :'android()'
- Gradle DSL method not found: 'android()
- Gradle DSL method not found: 'android()'
- Gradle DSL method not found: 'android()
- gradle DSL method not found: android()
- Gradle DSL method not found: 'android()'
- Gradle Dsl method not found:'android()'
- Gradle DSL method not found: 'android()'
- error Gradle DSL method not found: 'android()'
- Gradle DSL method not found: 'android()' /runProguard()’
- 解决Gradle DSL method not found: ‘android()’
- Gradle DSL method not found android()解决方法
- Gradle DSL method not found android
- gradle dsl method not found : 'android()'
- 工控自动化通讯测试工具总结之--串口
- hdu 5289 Assignment(2015 Multi-University Training Contest 1)
- 数组的下标访问和指针访问方式效率分析比较
- 微信QQ骗子资料曝光
- 环境变量
- Gradle DSL method not found: 'android()
- 大数据处理分析的工具介绍
- 阿里巴巴装袋问题
- Java NIO 特性学习
- 基于CentOS的Mysql学习补充二--使用Shell创建数据库
- POJ-3006 Dirichlet's Theorem on Arithmetic Progressions
- hd-1093:A+B for Input-Output Practice (V)
- Spark: sortBy和sortByKey函数详解
- mybatis 的mapper代理小结