您的位置:首页 > 大数据 > 人工智能

Could not find method google() for arguments [] on repository container.

2018-02-01 17:53 1166 查看
Now you will probably get this error if you haven’t upgraded the gradle library in the gradle-wrapper.properties file.

Could not find method google() for arguments [] on repository container.

So, let’s replace this line in the gradle-wrapper.properties

distributionUrl=https://services.gradle.org/distributions/gradle-2.14.1-all.zip


with this line

distributionUrl=https://services.gradle.org/distributions/gradle-4.1-all.zip


Then do a clean and rebuild, everything should work now.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐