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'
}
}