1

Ionic3에서 FCM에 의한 푸시 알림을 구현하려고합니다. 나는 Ionic FCM docs에서와 같이 모든 것을 따라 갔다. 모든 것이 원활하게 진행되었지만 빌드를 시도 할 때 아래 오류가 발생했습니다. 이 문제를 해결하는 방법, 미리 감사드립니다.FCM 플러그인을 설치 한 후 빌드가 실패합니다.

BUILD FAILED 
    Total time: 2.138 secs 
    Error: cmd: Command failed with exit code 1 Error output: 
    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.0.0. 

    * Try: 
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

답변

0

이 시도 : 당신의 plugins 폴더로 이동하여 FCM 플러그인의 폴더를 엽니 다. 그런 다음 src/android 오픈 FCMPlugin.gradle로 이동 한 다음 줄을 변경 :이 하나

classpath 'com.google.gms:google-services:3.1.1' 

저장하려면

classpath 'com.google.gms:google-services:3.0.0' 

파일을, (cordova platform add android를) 다음 안드로이드 플랫폼 (cordova platform rm android)를 제거하고 다시 추가 .

+1

나는 그것을 시도했지만 동일한 오류가 발생했습니다. – Niraj

+0

다른 플러그인 중 하나가 다른 Google 서비스를 사용하고 있습니다. 당신은 어떤 버전을 찾아서 같은 버전으로 바꿔야 할 것입니다. – David