Google services version conflict (Maps / FCM)

9.0.1? Too old. Currently 11.0.6.

Yeah. I used this version just for demonestration. I am using google service version 11.0.1

Thanks, this worked for me. I had to do an extra step.
In plugin.xml of the Google Maps, I had to specify the version instead of ‘+’

<framework src="com.google.android.gms:play-services-maps:11.4.2" />
<framework src="com.google.android.gms:play-services-location:11.4.2" />

Thanks again.

You need to recognize the risk that specifying the version of the google play services might break the maps plugin in the future. Because if I implement new feature that is included the higher version (such as 11.6.0), you would get build error.
You need to changing the version forever.

1 Like

Ok here’s the steps I used to solve the problem.

Goto platforms/android/build.gradle change your playservices from + to 11.4.2 or any latest version.

cordova.system.library.1=com.facebook.android:facebook-android-sdk:4.14.+
cordova.system.library.2=com.google.firebase:firebase-core:11.4.2
cordova.system.library.3=com.google.firebase:firebase-messaging:11.4.2
cordova.gradle.include.1=cordova-plugin-fcm/ondago-FCMPlugin.gradle
cordova.system.library.4=com.google.android.gms:play-services-auth:11.4.2
cordova.system.library.5=com.google.android.gms:play-services-identity:11.4.2

Now goto plugins/fcm/FCMPlugin.properties and change google services verion from + to 3.1.2 or any latest version
classpath ‘com.google.gms:google-services:3.1.2’

Now you do not need to remove platform and add platform again, as we have changed the build.gradle

1 Like

I have the same issue of @joe_c_sleiman, and I have the files as he posted but it still the same error, I can´t compile.
Please help me, @joe_c_sleiman if you already solved it please let me know how you did it.

Thanks!! You saved my skin!

i am facing same issue still not found any solution

Thanks. This solution saved me.

1 Like

the problem is that when you re build your app (or use ionic cordova run), build.gradle is rewrited… Do you have a solution for testing?

Yes after i made same changes getting error lgetCompileConfigurationCompile() for arguments[]
i added in this line build.gradle maven {
url ‘https://maven.google.com
} any and google service version from 3.1.0 to +

Give this man a cookie! :cookie:

Thanks a lot. This solution worked for me.:sunglasses:

fixed ??
.,…

android/build.gradle https://gist.github.com/hribab/b4786f69a4467b22c6719b6850601d5f
fcmplugin.gradle https://gist.github.com/hribab/21989166a599e357b19f394410755a91
fcm/config.xml https://gist.github.com/hribab/327b5f500dd58f3aafcdd6536dec19e2

1 Like

This is work for me maybe helpfull.