Error:(23, 0) Gradle DSL method not found: 'google()'
来源:互联网 发布:fpga数据采集系统 编辑:程序博客网 时间:2024/05/17 03:14
在使用glide时,刚开始在gradle中引人库时,用的是https://github.com/bumptech/glide直接复制粘贴过来的,如下所示:
repositories { mavenCentral() google()}dependencies { implementation 'com.github.bumptech.glide:glide:4.4.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'}
在重建工程时报错,报错如下:
Error:(23, 0) Gradle DSL method not found: ‘google()’
Possible causes:
- The project ‘CoolWeather’ may be using a version of the Android Gradle plug-in that does not contain the method (e.g. ‘testCompile’ was added in 1.1.0).
Upgrade plugin to version 2.3.1 and sync project - The project ‘CoolWeather’ may be using a version of Gradle that does not contain the method.
Open Gradle wrapper file - The build file may be missing a Gradle plugin.
Apply Gradle plugin
然后将gradle中配置改为如下所示,问题解决。
repositories { mavenCentral() maven { url 'https://maven.google.com' }}dependencies { annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'}
阅读全文
0 0
- Error:(23, 0) Gradle DSL method not found: 'google()'
- error Gradle DSL method not found: 'android()'
- Error:Gradle DSL method not found: 'has()'
- Error:(16, 0) Gradle DSL method not found: 'runProguard()'
- Error:(16, 0) Gradle DSL method not found: 'runProguard()'
- Error:(16, 0) Gradle DSL method not found: 'android()'
- Error:(16, 0) Gradle DSL method not found: 'Android()'
- Error:(33, 0) Gradle DSL method not found: 'apt()'
- Error:(16, 0) Gradle DSL method not found: 'android()'
- Error:(27, 0) Gradle DSL method not found: 'compileSdkVersion()'
- Gradle DSL method not found
- Gradle DSL method not found
- 解决Error:Gradle DSL method not found: 'install()'
- Android Studio Error:Gradle DSL method not found: 'has()'
- Android Studio Error:Gradle DSL method not found: 'has()'
- Android Studio---Error:(18, 0) Gradle DSL method not found: 'android()'
- Android Studio Gradle DSL method not found: 'android()' — Error(17,0)
- Error:(4, 0) Gradle DSL method not found: 'classpath()' Possible causes: The project 'workspace-64'
- IDEA 多个项目
- 卷积与反卷积
- JavascriptDom编程艺术学习笔记三
- acm,再见
- 【Scikit-Learn 中文文档】特征提取
- Error:(23, 0) Gradle DSL method not found: 'google()'
- Nginx简单介绍
- Mp4文件格式解析与Mp4文件分割
- 关联映射
- java核心基础--jdk源码分析学习--基本数据类型
- css 公共抽取
- jQuery中的Ajax--load()
- PAT乙级 1024. 科学计数法 (C语言)
- Qt之设置文件的读写属性