Closed luigi37 closed 6 years ago
Hi Luigi. Im going to ask the stupid question: Have you tried updating your android SDK? If you go to your terminal and type android
, you will be able to access the android SDK manager. Then you can update Google Play Services.
If you still need help, let us know.
Yep. tried. All is up to date but the issue seems to come from the settings in various build.gradle and plugin.xml files. After trying many more options, I've found this one to work properly: https://forum.ionicframework.com/t/google-services-version-conflict-maps-fcm/93695/15
It's not optimal as it requires a manual tweak to platform/android/build.gradle (in add to a couple of changes to both mauron85 and cordova-plugin-fcm repositories).
Other plugins (than mauron85) seems not to be affected...
@luigi37 In ionic, the gradle stuff is all generated from the plugin.xmls.
Look at this file https://github.com/mauron85/cordova-plugin-background-geolocation/blob/master/android/build.gradle
You can try to upgrade the tools using classpath 'com.android.tools.build:gradle:2.3.3'
https://developer.android.com/studio/releases/gradle-plugin.html
All those outdated repos that no one looks after anymore... You may fork it the geo plugin and change that line and install from your repo for testing. I am pretty sure that this will get you on the right track.
Cheers
Perfect, thanks CowboyCode, I will give it a try as it would be much cleaner solution
@luigi37 You may have to replace the outdated distributionUrl = https\://services.gradle.org/distributions/gradle-3.3-all.zip
in platforms/android/app/gradle.settings (or so, just get that out of the top of my head :-) )
I close this issue for now, let me know if there are still issues
Hi, yes the issue is still there... I think it's anyway linked to this: [ostownsville/cordova-plugin-fcm] Android Firebase and Google Services - Out Of Date (#14) https://github.com/ostownsville/cordova-plugin-fcm/issues/14
Hi, I'm getting this at
cordova run android
:I've been looking around and it's certanly linked to this other plugin https://github.com/mauron85/cordova-plugin-background-geolocation
I tried a ton of different alternatives but could not get this away.
Any suggestion? Thanks Luigi