Error:Could not find method google() for arguments [] on repository container
Error:Could not find method google() for arguments [] on repository container.
Consult IDE log for more details (Help | Show Log)
修改gradle-wrapper.properties中的值
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
修改为
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
本文介绍了一种常见的Gradle构建工具错误:找不到方法google()的问题及其解决方案。通过更新gradle-wrapper.properties文件中distributionUrl的版本从gradle-3.3-all.zip到gradle-4.1-all.zip来解决该问题。
1580

被折叠的 条评论
为什么被折叠?



