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
原文地址:https://www.cnblogs.com/maxwell-xu/p/8794125.html