我已经使用FCM创建了一个离子项目。但是在安装FCM后它显示错误':processDebugGoogleServices'。我已经更新了SDK。如何解决这个问题并构建apk
Error: cmd: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.2.0.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

答案 0 :(得分:0)
答案 1 :(得分:0)
"要解决此错误,请转到项目 - >平台..> android - > .gradlefile 并修改"
buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:+'
classpath 'com.google.gms:google-services:3.0.0'*
}
} // apply plugin:' com.google.gms.google-services' //必须使用class而不是id(string)才能从非root gradle文件中应用插件 apply plugin:com.google.gms.googleservices.GoogleServicesPlugin