FCMPlugin build fail due to version conflict with google gms services

后端 未结 5 1402
无人及你
无人及你 2021-01-03 06:45

I\'m using this with ionic 2 on Windows for Android. When I add cordova-plugin-fcm plugin, I cannot build the project anymore. Here is the error that I\'m getting:



        
5条回答
  •  Happy的楠姐
    2021-01-03 07:25

    To resolve this error, go to the Project-->platform..>android-->.gradlefile and Modify the line

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

    } // apply plugin: 'com.google.gms.google-services' // class must be used instead of id(string) to be able to apply plugin from non-root gradle file apply plugin: com.google.gms.googleservices.GoogleServicesPlugin

提交回复
热议问题