Plugin with id ‘com.google.gms.google-services‘ not found.

Plugin with id ‘com.google.gms.google-services’ not found.

我最近修改了点东西,然后提示我审核未通过,这玩意是干嘛的你都不清楚,我也是醉了


问题:
android studio报错 Plugin with id 'com.google.gms.google-services' not found
这个是在模块级下的build.gradle加入apply plugin:'com.google.gms.google-services'后出现的

解决方法:
在项目级别的build.gradle的dependencies加入如下,后面的x.x.x是版本,我目前用的是4.2.0,有的会报ASCII的错误,挑个正确的版本就好了

buildscript {
  dependencies {
      classpath 'com.google.gms:google-services:x.x.x'
  }
}

维尼聚合工具


猜你喜欢

转载自blog.csdn.net/S_clifftop/article/details/103048695
今日推荐