Ionic-native-google-maps: Please fix the version conflict either by updating the version of the google-services plugin

Created on 28 May 2018  Â·  17Comments  Â·  Source: ionic-team/ionic-native-google-maps

I am using "phonegap-plugin-push". After installing "cordova-plugin-googlemaps" I am receiving below error

Please fix the version conflict either by updating the version of the google-services plugin

This is my "platforms\android\project.properties" file containing below code

target=android-26 android.library.reference.1=CordovaLib android.library.reference.2=app cordova.system.library.1=com.android.support:support-v4:26.+ cordova.system.library.2=com.android.support:appcompat-v7:26.+ cordova.system.library.3=com.android.support:support-v13:26.+ cordova.system.library.4=me.leolin:ShortcutBadger:1.1.17@aar cordova.system.library.5=com.google.firebase:firebase-messaging:11.6.0 cordova.gradle.include.1=phonegap-plugin-push/alvi-push.gradle cordova.gradle.include.2=cordova-plugin-googlemaps/alvi-tbxml-android.gradle cordova.system.library.6=com.google.android.gms:play-services-maps:15.0.1 cordova.system.library.7=com.google.android.gms:play-services-location:15.0.1 cordova.system.library.8=com.android.support:support-core-utils:26.1.0

Now if I change "com.google.firebase:firebase-messaging:11.6.0" this version to 15.0.1 or else then it creates more issue. Please let me know what should I do to get rid this error. It already wasted my 2 days.

not bug pending / waiting

Most helpful comment

I figured out, which versions currently work together for phonegap-plugin-pushwith cordova-plugin-googlemaps. See my stripped down config.xml

...
  <plugin name="cordova-plugin-googlemaps" spec="2.3.10">
        <variable name="API_KEY_FOR_ANDROID" value="YOUR_KEY" />
        <variable name="API_KEY_FOR_IOS" value="YOUR_KEY" />
        <variable name="PLAY_SERVICES_VERSION" value="15.0.1" />
        <variable name="ANDROID_SUPPORT_V4_VERSION" value="27.1.1" />
        <variable name="LOCATION_WHEN_IN_USE_DESCRIPTION" value="YOUR_MESSAGE" />
        <variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="YOUR_MESSAGE" />
    </plugin>
    <plugin name="phonegap-plugin-push" spec="2.2.3">
        <variable name="ANDROID_SUPPORT_V13_VERSION" value="27.1.1" />
        <variable name="FCM_VERSION" value="17.1.0" />
    </plugin>
...

It's mainly about Cordova/Gradle giving missleading hints about versions. You have to figure out, which versions are available. @Ross-Rawlins problem is, that there is actually no v15.0.1 of FCM - seems like they removed it for some problem and only v15.0.2 or higher is available (as you see above I went with v17.1.0 - should probably also work with the two days old v17.3.0). Go check here for future reference which versions of those packages are available check here: . Make sure you have a clean build of your android platform.
I hope this helps!

All 17 comments

If you can't solve by yourself, please share your project files everything on GitHub

Conflicting is YOUR application configuration mistake. Not plugin's bug.
If you don't share your project files, please resolve the issue by yourself.

@wf9a5m75 can you please tell me which files do you need to view or should I need to put all the code?

Could you search past issues before asking, next time?

https://github.com/ionic-team/ionic-native-google-maps/issues/5#issuecomment-380693358

Past issues does not contain Plugin 'phonegap-plugin-push'. I read many issues and spend 2 days then I post my issue here

phonegap-plugin-push is not related.
You have to use same version numbers for all Google Play Services SDK libraries.
Then cordova clean.

After that ionic cordova build android.


Even if you can't solve the issue by yourself, give up to use this plugin, and use Google Maps JavaScript v3.

By the way I just remove 'android' folder and 'plugin' folder then I run below command

ionic cordova prepare

This command install all the plugins and give me below message in last

Plugin doesn't support this project's cordova-android version. cordova-android: 7.0.0, failed version requirement: >=7.1.0
Skipping 'phonegap-plugin-push' for android

now when I see "project.properties" file it becomes

target=android-26
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.system.library.1=com.android.support:support-v4:26.+
cordova.system.library.2=com.android.support:appcompat-v7:26.+
cordova.gradle.include.1=cordova-plugin-googlemaps/alvi-tbxml-android.gradle
cordova.system.library.3=com.google.android.gms:play-services-maps:15.0.1
cordova.system.library.4=com.google.android.gms:play-services-location:15.0.1
cordova.system.library.5=com.android.support:support-core-utils:26.1.0

It removes firebase and some lines but that issue removed. Now strange thing is that phonegap plugin push is exist in plugin folder but not mentioned in above file.
I run app and it is running fine.

Actually "phonegap-plugin-push" is not supported the version 15.0.1 that required for google maps then how can we use same version number for all? This one was creating problem

Ask to phonegap-plugin-push developer. It is out of coverage of mine.

@wf9a5m75 sorry bro it looks like that from past issues that you are too much frustrated from 'phonegap-plugin-push'. Hope developers fix this.

Hopefully the phonegap-plugin-push developer catches up the latest version if he( @macdonst ) specifies particular version.

this is still an issue they cant co exist. the new push says it can run 15.0.1 but then I get hte issue
Could not resolve all files for configuration ':app:debugCompileClasspath'.

Could not find com.google.firebase:firebase-messaging:15.0.1.

Does anyone know the correct version to set for these two to co exist?

I figured out, which versions currently work together for phonegap-plugin-pushwith cordova-plugin-googlemaps. See my stripped down config.xml

...
  <plugin name="cordova-plugin-googlemaps" spec="2.3.10">
        <variable name="API_KEY_FOR_ANDROID" value="YOUR_KEY" />
        <variable name="API_KEY_FOR_IOS" value="YOUR_KEY" />
        <variable name="PLAY_SERVICES_VERSION" value="15.0.1" />
        <variable name="ANDROID_SUPPORT_V4_VERSION" value="27.1.1" />
        <variable name="LOCATION_WHEN_IN_USE_DESCRIPTION" value="YOUR_MESSAGE" />
        <variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="YOUR_MESSAGE" />
    </plugin>
    <plugin name="phonegap-plugin-push" spec="2.2.3">
        <variable name="ANDROID_SUPPORT_V13_VERSION" value="27.1.1" />
        <variable name="FCM_VERSION" value="17.1.0" />
    </plugin>
...

It's mainly about Cordova/Gradle giving missleading hints about versions. You have to figure out, which versions are available. @Ross-Rawlins problem is, that there is actually no v15.0.1 of FCM - seems like they removed it for some problem and only v15.0.2 or higher is available (as you see above I went with v17.1.0 - should probably also work with the two days old v17.3.0). Go check here for future reference which versions of those packages are available check here: . Make sure you have a clean build of your android platform.
I hope this helps!

I resolved it with a platform and plugin update to teh latest.

On Wed, 15 Aug 2018 at 11:47, KiwiKilian notifications@github.com wrote:

I figured out, which versions currently work together for
phonegap-plugin-pushwith cordova-plugin-googlemaps. See my stripped down
config.xml

...












...

It's mainly about Cordova/Gradle giving missleading hints about versions.
You have to figure out, which versions are available. @Ross-Rawlins
https://github.com/Ross-Rawlins problem is, that there is actually no
v15.0.1 of FCM - seems like they removed it for some problem and only
v15.0.2 or higher is available (as you see above I went with v17.1.0 -
should probably also work with the two days old v17.3.0). Go check here for
future reference which versions of those packages are available check here:
https://maven.google.com/. Make sure you have a clean build of your
android platform.
I hope this helps!

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ionic-team/ionic-native-google-maps/issues/36#issuecomment-413148309,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADMeULQy6OfYTSQjZn4V1r65T94bRRzKks5uQ-49gaJpZM4UQhae
.

--
Ross Rawlins
Tel: 021 531 7087
Cell: 072 424 9480
Skype: ross.rawlins
Email: [email protected]

http://www.duovili.co.za
https://plus.google.com/113781084234234096576/posts
https://www.facebook.com/Duovili
http://www.linkedin.com/company/duovili/ https://twitter.com/Duovili

This e-mail message and all attachments contain the CONFIDENTIAL AND
PROPRIETARY information of DUOVILI DEVELOPMENTS. and may contain LEGALLY
PRIVILEGED information. If you are not the intended recipient, you are
hereby notified that any disclosure, distribution, or use of this e-mail,
its attachments or any information contained therein is unauthorised and
prohibited. If you have received this in error, please contact the sender
immediately and delete this e-mail and any attachments.

I figured out, which versions currently work together for phonegap-plugin-pushwith cordova-plugin-googlemaps. See my stripped down config.xml

...
  <plugin name="cordova-plugin-googlemaps" spec="2.3.10">
        <variable name="API_KEY_FOR_ANDROID" value="YOUR_KEY" />
        <variable name="API_KEY_FOR_IOS" value="YOUR_KEY" />
        <variable name="PLAY_SERVICES_VERSION" value="15.0.1" />
        <variable name="ANDROID_SUPPORT_V4_VERSION" value="27.1.1" />
        <variable name="LOCATION_WHEN_IN_USE_DESCRIPTION" value="YOUR_MESSAGE" />
        <variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="YOUR_MESSAGE" />
    </plugin>
    <plugin name="phonegap-plugin-push" spec="2.2.3">
        <variable name="ANDROID_SUPPORT_V13_VERSION" value="27.1.1" />
        <variable name="FCM_VERSION" value="17.1.0" />
    </plugin>
...

It's mainly about Cordova/Gradle giving missleading hints about versions. You have to figure out, which versions are available. @Ross-Rawlins problem is, that there is actually no v15.0.1 of FCM - seems like they removed it for some problem and only v15.0.2 or higher is available (as you see above I went with v17.1.0 - should probably also work with the two days old v17.3.0). Go check here for future reference which versions of those packages are available check here: . Make sure you have a clean build of your android platform.
I hope this helps!

You Sir is a genius!!! Damn this issue has been haunting me since 3 days!!!
I am trying different versions and alternate options.

If you can't solve by yourself, please share your project files everything on GitHub
Hi @wf9a5m75 ,

Please have a look and help me to fix fcm_googlemap_issue, I have attached my repo link.
https://bitbucket.org/vinodMeesap/fcm_googlemap_issue.git

Thanks.

Was this page helpful?
0 / 5 - 0 ratings