Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

GOOGLE_PLAY_SERVICE_VERSION



  • Hi,

    i want to use the cordova-plugin-background-geolocation v3 in a custom debugger. The build on my machine with “cordova build android” works without any failure and i can even run the app on a device. Only within the build for the custom debugger i get the following problem:

    * What went wrong:
    A problem occurred evaluating root project 'android'.
    > Could not get unknown property 'GOOGLE_PLAY_SERVICES_VERSION' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
    

    In my config.xml i included the “GOOGLE_PLAY_SERVICES_VERSION” variable to the plugin which is mentioned in the documentation of the plugin (https://github.com/mauron85/cordova-plugin-background-geolocation/tree/df16ba2a294c4596622436677f364e66ea415935) .

    Do i need another plugin to solve this problem? Or does anyone know how to solve this problem or can give me any advice?

    Thank you



  • I solved it by readding the plugin with variable and the cordova-platform to the project.

    1. Removing the plugin and the cordova-android platform from the project
    2. Add the plugin with GOOGLE_PLAY_SERVICES_VERSION variable:
    cordova plugin add cordova-plugin-mauron85-background-geolocation@3.0.0-alpha.7 --variable GOOGLE_PLAY_SERVICES_VERSION="11.0.1"
    
    1. Add the cordova-android platform


  • Does anyone know how to remove payment details from google play?