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
with this line
Then do a clean and rebuild, everything should work now.
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.
相关文章推荐
- Could not find method google() for arguments [] on repository container.
- Could not find method jcenter() for arguments [] on repository container
- Could not find method runProguard() for arguments [false] on B...
- Could not find method runProguard() for arguments [false] on BuildType_Decorated{
- Android Studio的工程错误Could not find method runProguard() for arguments [false] on BuildType_Decorated
- Could not find method compile() for arguments [project:'lib'] on root project ''
- Could not find method multiDexEnabled() for arguments [true] on ProductFlavorD sl_Decorated{name=mai
- 解决AS导入Error:(1, 0) Could not find method apply() for arguments [{plugin=com.android.application}]错误
- Android studio Error:(22, 0) Could not find method android() for arguments [build_cxgvc055pb3xpt91ip
- Could not find method android.app.Activity.on.AttachedToWindow...
- Could not find method compile() for arguments
- Gradle sync failed: Could not find method android() for arguments [build_aj7feyco0x5e5hj3g6wttaj6$_
- Android Studio 解决错误 Could not find method android() for arguments
- Could not find method on interface org.apache.ibatis.executor.statement.StatementHandler
- Android Studio:Could not find method android() for arguments
- MyBatis3.4.0以上的分页插件错误:Could not find method on interface org.apache.ibatis.executor.statement.StatementHandler named prepare. Cause: java.lang.NoSuchMethodException: org.apache.ibatis.executor.stateme
- Could not find method compile() for arguments
- Android Studio Exception: Could not find method android() for arguments
- Android Studio中 Error:Could not find method compile() for arguments
- 解决error[22,0]Could not find method android() for arguments的方法