2017-01-02 117 views
2

我已經創建了FCM的離子項目instlled.But後安裝FCM它顯示錯誤':processDebugGoogleServices'.I已更新的SDK。如何解決thatand建立APK enter image description here如何解決在離子項目中使用FCM創建android 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

添加在您的build.gradle文件末尾以下行和重建項目。

應用插件:「com.google.gms.google服務」

注意:請確保您在該行的末尾

退房添加上述行樣品爲link

0

「要解決此錯誤,轉到項目 - >平臺..>機器人 - > gradlefile 和修改」

buildscript { 
     repositories { 
     jcenter() 
     mavenLocal() 
    } 
dependencies { 
    classpath 'com.android.tools.build:gradle:+' 
    classpath 'com.google.gms:google-services:3.0.0'* 
} 

} // 應用插件:「com.google。 gms.google-services' //必須使用class而不是id(字符串)才能應用非根Gradle文件中的插件 apply plugin:com.google.gms.googleservices.GoogleServicesPlugin

相關問題