Hi. I wanna help. Im using capacitor. Rahjain’s answer didn’t quite work for me, but same idea… @mauron85 has to use the same PLAY-SERVICES-LOCATION version with other plugins. In my case, I had to dig in to the node_modules/@mauron85/cordova-plugin-background-geolocation/plugin.xml and change the GOOGLE_PLAY_SERVICES_VERSION default value to “15.0.1”. After running ionic cap sync
… the android builds with zero errors. It works for me but I think there is better way to edit the plugin.xml for capacitor, although cordova seems to have one it their documentation.
↧
Getting apk build failure when using ionic-native/push and ionic-native/background-geolocation
↧