报错信息如下:
Gradle DSL method not found: 'google()'
Possible causes:<ul><li>The project 'JustTest' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
Upgrade plugin to version 3.1.2 and sync project</li><li>The project 'JustTest' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper file</li><li>The build file may be missing a Gradle plugin.
Apply Gradle plugin</li>

错误原因分析:没找到google(),The google() repo is a shortcut to looks in Google's Maven repository for dependencies. It was introduced with gradle v.4.0。(使用条件)It requires (currently)Gradle v.4、Android Studio 3.x.、Gradle plugin for Android 3.x

解决问题办法:

  • 1、将google()替换成maven {url 'https://maven.google.com'}
  • 2、满足上面使用google()的三个条件。

最新文章

  1. [C#] 走进 LINQ 的世界
  2. 《CPU的工作过程》
  3. python基础之day1
  4. Constraint3:check约束 和 null
  5. WebApi Post提交报错 调试无法进入对应action函数
  6. pycharm运行脚本为何不生成测试报告?
  7. 让mysql有直接写redis能力
  8. Unity3D脚本18:可视化辅助设置类 Gizmos
  9. java properties读取与设值
  10. redis的安装过程基本配置及遇到问题的解决
  11. DELPHI 里面的迭代
  12. 使用php将数组转为XML
  13. python小记列表排序
  14. Java I/O---序列化接口Serializable
  15. SIMPLE_DEV_PM_OPS宏
  16. xcodebuild构建时报错unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1
  17. Django的下载与项目的创建
  18. CentOS7查询系统版本内核信息
  19. Java+Jmeter接口测试
  20. 2018.08.16 洛谷P1471 方差(线段树)

热门文章

  1. Appium常用操作之「微信滑屏、触屏操作」
  2. drf JWT认证模块与自定制
  3. AC86U kx上网
  4. springcloud-zinpin的安装与使用
  5. 直播平台搭建之音视频开发:认识主流视频编码技术H.264
  6. .NET 5 中的隐藏特性
  7. 这才是图文并茂:我写了1万多字,就是为了让你了解AQS是怎么运行的
  8. 使用qmake编译时拷贝文件
  9. SpringBean生命周期-Version-v5.1.0.RELEASE
  10. My SQL的基本操作(总结)