Google Play Services GCM 9.2.0 asks to “update” back to 9.0.0

前端 未结 11 1551
眼角桃花
眼角桃花 2020-12-07 11:35

So this morning I started updating to the latest version of my project libraries.

I\'m trying to update GCM to the latest version 9.2.0, but I get this error:

<
11条回答
  •  醉话见心
    2020-12-07 12:13

    For Cordova OR Ionic Hybrid App

    I have the very similar problem with my Ionic 1 Cordova Build after Integrating the Firebase Cloud Messaging ( FCM )

    I fixed this issue by the following steps

    So one fix will be: inside platforms/android open project.properties (Its a file ) , you will have something like this

    cordova.system.library.1=com.google.android.gms:play-services-ads:+
    cordova.system.library.2=com.google.firebase:firebase-core:+
    cordova.system.library.3=com.google.firebase:firebase-messaging:+
    

    Replace the

    +

    Sign with your target version number - like the following

    cordova.system.library.1=com.google.android.gms:play-services-ads:9.0.0
    cordova.system.library.2=com.google.firebase:firebase-core:9.0.0
    cordova.system.library.3=com.google.firebase:firebase-messaging:9.0.0
    

    Save the file

    Then take build using

     ionic cordova run android
    

    I hope this will work for everyone

提交回复
热议问题