Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility between this plug-in and cordova-plugin-background-geolocation #1043

Open
UTSOURCE opened this issue Apr 14, 2019 · 4 comments

Comments

@UTSOURCE
Copy link

Your Environment

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

Context

Compatibility problems with sub-plug-ins and cordova-plugin-firebase
I don't know if it's the plug-in problem or the cordova-plugin-firebase problem. I should give that plug-in feedback and ask the author to fix it.
This causes gradle to fail,

Expected Behavior

Actual Behavior

Possible Fix

Steps to Reproduce

Context

Debug logs

`Discovered saved plugin "mx.ferreyra.callnumber". Adding it to the project
Plugin "call-number" already installed on android.
Preparing Firebase on Android
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=D:\android sdk (DEPRECATED)
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variantOutput.getProcessManifest()' is obsolete and has been replaced with 'variantOutput.getProcessManifestProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessManifest(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getPackageApplication()' is obsolete and has been replaced with 'variant.getPackageApplicationProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
WARNING: API 'variant.getExternalNativeBuildTasks()' is obsolete and has been replaced with 'variant.getExternalNativeBuildProviders()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getExternalNativeBuildTasks(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

Task :app:preBuild UP-TO-DATE
Task :CordovaLib:preBuild UP-TO-DATE
Task :CordovaLib:preDebugBuild UP-TO-DATE
Task :CordovaLib:checkDebugManifest UP-TO-DATE
Task :CordovaLib:processDebugManifest UP-TO-DATE
Task :app:preDebugBuild
Task :app:preDebugBuild
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all files for configuration ':app:debugCompileClasspath'.

Could not resolve com.android.support:support-v4:24.1.1+. FAILED

Required by:
project :app

Failed to list versions for com.android.support:support-v4.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml'.
> Connect to jcenter.bintray.com:443 [jcenter.bintray.com/54.187.232.234, jcenter.bintray.com/34.214.151.81] failed: Connection timed out: con
nect
Failed to list versions for com.android.support:support-v4.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml'.
> Connect to jcenter.bintray.com:443 [jcenter.bintray.com/54.187.232.234, jcenter.bintray.com/34.214.151.81] failed: Connection timed out: con
nect

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 4m 35s
3 actionable tasks: 1 executed, 2 up-to-date
E:\AuszDriverApp\platforms\android\gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all files for configuration ':app:debugCompileClasspath'.

Could not resolve com.android.support:support-v4:24.1.1+.
Required by:
project :app
Failed to list versions for com.android.support:support-v4.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml'.
> Connect to jcenter.bintray.com:443 [jcenter.bintray.com/54.187.232.234, jcenter.bintray.com/34.214.151.81] failed: Connection timed out: con
nect
Failed to list versions for com.android.support:support-v4.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml.
> Could not get resource 'https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml'.
> Could not GET 'https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml'.
> Connect to jcenter.bintray.com:443 [jcenter.bintray.com/54.187.232.234, jcenter.bintray.com/34.214.151.81] failed: Connection timed out: con
nect

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 4m 35s
`

@UTSOURCE
Copy link
Author

# Project target. target=android-28 android.library.reference.1=CordovaLib android.library.reference.2=app cordova.system.library.1=com.android.support:support-v4:24.1.1+ cordova.system.library.2=com.android.support:support-v4:27.+ cordova.gradle.include.1=cordova-plugin-firebase/driver-build.gradle cordova.system.library.3=com.google.android.gms:play-services-tagmanager:+ cordova.system.library.4=com.google.firebase:firebase-core:+ cordova.system.library.5=com.google.firebase:firebase-messaging:+ cordova.system.library.6=com.google.firebase:firebase-config:+ cordova.system.library.7=com.google.firebase:firebase-perf:+ cordova.system.library.8=com.android.support:support-annotations:27.+ cordova.system.library.9=com.google.android.gms:play-services-location:11+ cordova.system.library.10=com.android.support:support-v4:26+ cordova.system.library.11=com.android.support:appcompat-v7:26+ cordova.gradle.include.2=cordova-plugin-mauron85-background-geolocation/driver-dependencies.gradle cordova.system.library.12=com.android.support:support-v4:28.+ cordova.system.library.13=com.android.support:appcompat-v7:28.+

@UTSOURCE
Copy link
Author

QQ截图20190413193627

@bhammack
Copy link

I had a similar issue to you when attempting to use this plugin with cordova-plugin-geolocation-services. I ended up swapping this plugin with a more-updated fork found here:

#1021

Once installed, I then overrode the google services plugin version from 11+ (the default, or suggested) to 16+ on the cordova-plugin-background-geolocation. Hope this helps.

@juangalalz
Copy link

I had a similar issue to you when attempting to use this plugin with cordova-plugin-geolocation-services. I ended up swapping this plugin with a more-updated fork found here:

#1021

Once installed, I then overrode the google services plugin version from 11+ (the default, or suggested) to 16+ on the cordova-plugin-background-geolocation. Hope this helps.

how did you override the google services plugin version? i have de same problem:

Failed to capture fingerprint of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check.

In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[16.3.
0]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.google.firebase:firebase-measurement-connector-impl:17.0.5 -> com.google.android.gms:play-servic
es-measurement-base@[16.3.0], but play-services-measurement-base version was 15.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants