Skip to content

Play Services Problem - PhoneGap Build #564

Description

@Jaiymesz

Your Environment

  • Plugin version: 3.0.3
  • Platform: Android
  • OS version:
  • Device manufacturer and model: Samsung Galaxy S9
  • Running in Simulator:
  • Cordova version (cordova -v):
  • Cordova platform version (cordova platform ls):
  • Plugin configuration options:
  • Link to your project:

Context

I am unable to successfully specify a play services version in config.xml for a Phone Gap Build project, it is conflicting with another plugin which is using a specific newer version, but this app default is 11+.

Expected Behavior

Be able to specify a version number such as.

<plugin name="@mauron85/cordova-plugin-background-geolocation"> <variable name="PLAY_SERVICES_VERSION" value="xxxx" /> </plugin>

Actual Behavior

Keeps to default 11+

Possible Fix

https://blog.phonegap.com/the-play-services-problem-with-cordova-applications-489c9aeb2e89

floatinghotpot/cordova-admob-pro#645

Steps to Reproduce

  1. Install plugins pushwoosh-pgb-plugin and @mauron85/cordova-plugin-background-geolocation in Phone Gap Build.

Context

Unable to build application.

Debug logs

BUILD FAILED in 23s
28 actionable tasks: 28 executed
Error: /var/gimlet/tmp/47444662808800/794826/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/var/gimlet/tmp/47444662808800/794826/app/src/main/java/com/marianhello/bgloc/data/BackgroundActivity.java:20: error: cannot access zzbfm
confidence = activity.getConfidence();
^
class file for com.google.android.gms.internal.zzbfm not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

FAILURE: Build failed with an exception.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions