version conflict either by updating the version of the google-services plugin | Ionic












1















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.
    enter image description here













share|improve this question























  • Please refer this link github.com/dpa99c/cordova-plugin-request-location-accuracy/…

    – hrdkisback
    Dec 25 '17 at 16:21











  • try to replace compile "com.google.android.gms:play-services-location:+" to compile "com.google.android.gms:play-services-location:9.2.0"

    – chenrui
    Jan 4 '18 at 21:48











  • any solution you found?

    – Shoeb Siddique
    Mar 24 '18 at 11:01











  • did you resolve this?

    – Ross Rawlins
    Aug 13 '18 at 8:55


















1















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.
    enter image description here













share|improve this question























  • Please refer this link github.com/dpa99c/cordova-plugin-request-location-accuracy/…

    – hrdkisback
    Dec 25 '17 at 16:21











  • try to replace compile "com.google.android.gms:play-services-location:+" to compile "com.google.android.gms:play-services-location:9.2.0"

    – chenrui
    Jan 4 '18 at 21:48











  • any solution you found?

    – Shoeb Siddique
    Mar 24 '18 at 11:01











  • did you resolve this?

    – Ross Rawlins
    Aug 13 '18 at 8:55
















1












1








1








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.
    enter image description here













share|improve this question














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.
    enter image description here










ionic-framework ionic2 gradle-plugin






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 25 '17 at 9:22









TechValensTechValens

77215




77215













  • Please refer this link github.com/dpa99c/cordova-plugin-request-location-accuracy/…

    – hrdkisback
    Dec 25 '17 at 16:21











  • try to replace compile "com.google.android.gms:play-services-location:+" to compile "com.google.android.gms:play-services-location:9.2.0"

    – chenrui
    Jan 4 '18 at 21:48











  • any solution you found?

    – Shoeb Siddique
    Mar 24 '18 at 11:01











  • did you resolve this?

    – Ross Rawlins
    Aug 13 '18 at 8:55





















  • Please refer this link github.com/dpa99c/cordova-plugin-request-location-accuracy/…

    – hrdkisback
    Dec 25 '17 at 16:21











  • try to replace compile "com.google.android.gms:play-services-location:+" to compile "com.google.android.gms:play-services-location:9.2.0"

    – chenrui
    Jan 4 '18 at 21:48











  • any solution you found?

    – Shoeb Siddique
    Mar 24 '18 at 11:01











  • did you resolve this?

    – Ross Rawlins
    Aug 13 '18 at 8:55



















Please refer this link github.com/dpa99c/cordova-plugin-request-location-accuracy/…

– hrdkisback
Dec 25 '17 at 16:21





Please refer this link github.com/dpa99c/cordova-plugin-request-location-accuracy/…

– hrdkisback
Dec 25 '17 at 16:21













try to replace compile "com.google.android.gms:play-services-location:+" to compile "com.google.android.gms:play-services-location:9.2.0"

– chenrui
Jan 4 '18 at 21:48





try to replace compile "com.google.android.gms:play-services-location:+" to compile "com.google.android.gms:play-services-location:9.2.0"

– chenrui
Jan 4 '18 at 21:48













any solution you found?

– Shoeb Siddique
Mar 24 '18 at 11:01





any solution you found?

– Shoeb Siddique
Mar 24 '18 at 11:01













did you resolve this?

– Ross Rawlins
Aug 13 '18 at 8:55







did you resolve this?

– Ross Rawlins
Aug 13 '18 at 8:55














1 Answer
1






active

oldest

votes


















0














Easy solution is to install this updated plugin from my github account:
Remove fcm plugin:



ionic cordova plugin remove cordova-plugin-fcm-with-dependecy-updated


And install this updated version:



ionic cordova plugin add https://github.com/ishan123456789/cordova-plugin-fcm-with-dependecy-updated.git


If the above doesn't workout for you. The hard way



A solution for the above problem as seen in some channels is to:
Go to the plugins/cordova-plugin-fcm or plugins/cordova-plugin-fcm-with-dependency-updated then go to src/android/FCMPlugin.gradle



And replace:



    classpath 'com.google.gms:google-services:3.1.+'


With



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


And core to:



    dependencies {
compile 'com.google.firebase:firebase-core:11.8.0'
}


And plugin.xml



    <framework src="com.google.firebase:firebase-core:11.8.0" />
<framework src="com.google.firebase:firebase-messaging:11.8.0" />


The replace took place as per the google service higher version. In my case the conflict was with google plus plugin so I went to plugins/cordova-plugin-googleplus and there the google service version was



    <preference name="PLAY_SERVICES_VERSION" default="11.8.0"/>
<framework src="com.google.android.gms:play-services-auth:$PLAY_SERVICES_VERSION" />
<framework src="com.google.android.gms:play-services-identity:$PLAY_SERVICES_VERSION" />


So from here the version 11.8.0 came.



https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/283



https://github.com/fechanique/cordova-plugin-fcm/issues/231



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



https://github.com/fechanique/cordova-plugin-fcm/issues/499



https://github.com/fechanique/cordova-plugin-fcm/issues/306



This answer was quite resourceful



com.google.android.gms:play-services-measurement-base is being requested by various other libraries






share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47967334%2fversion-conflict-either-by-updating-the-version-of-the-google-services-plugin%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Easy solution is to install this updated plugin from my github account:
    Remove fcm plugin:



    ionic cordova plugin remove cordova-plugin-fcm-with-dependecy-updated


    And install this updated version:



    ionic cordova plugin add https://github.com/ishan123456789/cordova-plugin-fcm-with-dependecy-updated.git


    If the above doesn't workout for you. The hard way



    A solution for the above problem as seen in some channels is to:
    Go to the plugins/cordova-plugin-fcm or plugins/cordova-plugin-fcm-with-dependency-updated then go to src/android/FCMPlugin.gradle



    And replace:



        classpath 'com.google.gms:google-services:3.1.+'


    With



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


    And core to:



        dependencies {
    compile 'com.google.firebase:firebase-core:11.8.0'
    }


    And plugin.xml



        <framework src="com.google.firebase:firebase-core:11.8.0" />
    <framework src="com.google.firebase:firebase-messaging:11.8.0" />


    The replace took place as per the google service higher version. In my case the conflict was with google plus plugin so I went to plugins/cordova-plugin-googleplus and there the google service version was



        <preference name="PLAY_SERVICES_VERSION" default="11.8.0"/>
    <framework src="com.google.android.gms:play-services-auth:$PLAY_SERVICES_VERSION" />
    <framework src="com.google.android.gms:play-services-identity:$PLAY_SERVICES_VERSION" />


    So from here the version 11.8.0 came.



    https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/283



    https://github.com/fechanique/cordova-plugin-fcm/issues/231



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



    https://github.com/fechanique/cordova-plugin-fcm/issues/499



    https://github.com/fechanique/cordova-plugin-fcm/issues/306



    This answer was quite resourceful



    com.google.android.gms:play-services-measurement-base is being requested by various other libraries






    share|improve this answer






























      0














      Easy solution is to install this updated plugin from my github account:
      Remove fcm plugin:



      ionic cordova plugin remove cordova-plugin-fcm-with-dependecy-updated


      And install this updated version:



      ionic cordova plugin add https://github.com/ishan123456789/cordova-plugin-fcm-with-dependecy-updated.git


      If the above doesn't workout for you. The hard way



      A solution for the above problem as seen in some channels is to:
      Go to the plugins/cordova-plugin-fcm or plugins/cordova-plugin-fcm-with-dependency-updated then go to src/android/FCMPlugin.gradle



      And replace:



          classpath 'com.google.gms:google-services:3.1.+'


      With



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


      And core to:



          dependencies {
      compile 'com.google.firebase:firebase-core:11.8.0'
      }


      And plugin.xml



          <framework src="com.google.firebase:firebase-core:11.8.0" />
      <framework src="com.google.firebase:firebase-messaging:11.8.0" />


      The replace took place as per the google service higher version. In my case the conflict was with google plus plugin so I went to plugins/cordova-plugin-googleplus and there the google service version was



          <preference name="PLAY_SERVICES_VERSION" default="11.8.0"/>
      <framework src="com.google.android.gms:play-services-auth:$PLAY_SERVICES_VERSION" />
      <framework src="com.google.android.gms:play-services-identity:$PLAY_SERVICES_VERSION" />


      So from here the version 11.8.0 came.



      https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/283



      https://github.com/fechanique/cordova-plugin-fcm/issues/231



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



      https://github.com/fechanique/cordova-plugin-fcm/issues/499



      https://github.com/fechanique/cordova-plugin-fcm/issues/306



      This answer was quite resourceful



      com.google.android.gms:play-services-measurement-base is being requested by various other libraries






      share|improve this answer




























        0












        0








        0







        Easy solution is to install this updated plugin from my github account:
        Remove fcm plugin:



        ionic cordova plugin remove cordova-plugin-fcm-with-dependecy-updated


        And install this updated version:



        ionic cordova plugin add https://github.com/ishan123456789/cordova-plugin-fcm-with-dependecy-updated.git


        If the above doesn't workout for you. The hard way



        A solution for the above problem as seen in some channels is to:
        Go to the plugins/cordova-plugin-fcm or plugins/cordova-plugin-fcm-with-dependency-updated then go to src/android/FCMPlugin.gradle



        And replace:



            classpath 'com.google.gms:google-services:3.1.+'


        With



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


        And core to:



            dependencies {
        compile 'com.google.firebase:firebase-core:11.8.0'
        }


        And plugin.xml



            <framework src="com.google.firebase:firebase-core:11.8.0" />
        <framework src="com.google.firebase:firebase-messaging:11.8.0" />


        The replace took place as per the google service higher version. In my case the conflict was with google plus plugin so I went to plugins/cordova-plugin-googleplus and there the google service version was



            <preference name="PLAY_SERVICES_VERSION" default="11.8.0"/>
        <framework src="com.google.android.gms:play-services-auth:$PLAY_SERVICES_VERSION" />
        <framework src="com.google.android.gms:play-services-identity:$PLAY_SERVICES_VERSION" />


        So from here the version 11.8.0 came.



        https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/283



        https://github.com/fechanique/cordova-plugin-fcm/issues/231



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



        https://github.com/fechanique/cordova-plugin-fcm/issues/499



        https://github.com/fechanique/cordova-plugin-fcm/issues/306



        This answer was quite resourceful



        com.google.android.gms:play-services-measurement-base is being requested by various other libraries






        share|improve this answer















        Easy solution is to install this updated plugin from my github account:
        Remove fcm plugin:



        ionic cordova plugin remove cordova-plugin-fcm-with-dependecy-updated


        And install this updated version:



        ionic cordova plugin add https://github.com/ishan123456789/cordova-plugin-fcm-with-dependecy-updated.git


        If the above doesn't workout for you. The hard way



        A solution for the above problem as seen in some channels is to:
        Go to the plugins/cordova-plugin-fcm or plugins/cordova-plugin-fcm-with-dependency-updated then go to src/android/FCMPlugin.gradle



        And replace:



            classpath 'com.google.gms:google-services:3.1.+'


        With



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


        And core to:



            dependencies {
        compile 'com.google.firebase:firebase-core:11.8.0'
        }


        And plugin.xml



            <framework src="com.google.firebase:firebase-core:11.8.0" />
        <framework src="com.google.firebase:firebase-messaging:11.8.0" />


        The replace took place as per the google service higher version. In my case the conflict was with google plus plugin so I went to plugins/cordova-plugin-googleplus and there the google service version was



            <preference name="PLAY_SERVICES_VERSION" default="11.8.0"/>
        <framework src="com.google.android.gms:play-services-auth:$PLAY_SERVICES_VERSION" />
        <framework src="com.google.android.gms:play-services-identity:$PLAY_SERVICES_VERSION" />


        So from here the version 11.8.0 came.



        https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/283



        https://github.com/fechanique/cordova-plugin-fcm/issues/231



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



        https://github.com/fechanique/cordova-plugin-fcm/issues/499



        https://github.com/fechanique/cordova-plugin-fcm/issues/306



        This answer was quite resourceful



        com.google.android.gms:play-services-measurement-base is being requested by various other libraries







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 23 '18 at 12:05

























        answered Nov 23 '18 at 7:07









        Black MambaBlack Mamba

        3,08412441




        3,08412441
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47967334%2fversion-conflict-either-by-updating-the-version-of-the-google-services-plugin%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

            Alcedinidae

            RAC Tourist Trophy