Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find method google() for arguments [] on repository #12

Open
DXH100 opened this issue Aug 17, 2017 · 5 comments
Open

Could not find method google() for arguments [] on repository #12

DXH100 opened this issue Aug 17, 2017 · 5 comments

Comments

@DXH100
Copy link

DXH100 commented Aug 17, 2017

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

@XuanJiAndroid
Copy link

在根目录中的build.gradle文件中,将里面第6行还有第19行的google()注释掉即可

@denneyliu
Copy link

denneyliu commented Nov 14, 2017

google()注释掉不行,报错误

Could not find com.android.tools.build:gradle:3.0.0.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.jar

@moonljt521
Copy link

@denneyliu 更新到android studio3.0吧,同时把gradle 版本至少提到3.0,也该用了

@duyang29
Copy link

duyang29 commented Dec 18, 2017

Open preferences of Android Studio, you can use combination "shift+ctrl+s" in windows ("command+," in osx), then find the gradle setting , use local gradle distribution, make sure you have upgraded the latest gradle plugin. Sync your project finally, if there have problems, try to clean project and rebuild again. This works for me.

@Shouheng88
Copy link

Update gradle to 4.1 worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants