Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Last version conflicts with cordova-plugin-googleplus #61

Closed
robersant opened this issue Aug 16, 2018 · 2 comments
Closed

Last version conflicts with cordova-plugin-googleplus #61

robersant opened this issue Aug 16, 2018 · 2 comments

Comments

@robersant
Copy link

Last version of this plugin conflicts with cordova-plugin-googleplus in Phonegap Build (PGB). This didnt happen until August 14th, so any change introduced that day makes it fail.

The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_2lisanf8inuocv7kekszhk0zg.run(/build.gradle:143)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
Download https://jcenter.bintray.com/com/onesignal/OneSignal/3.9.1/OneSignal-3.9.1.pom
WARNING: Module 'com.google.android.gms:play-services-base:15.0.1' depends on one or more Android Libraries but is a jar

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'www_android'.

Could not find play-services-base.jar (com.google.android.gms:play-services-base:15.0.1).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-base/15.0.1/play-services-base-15.0.1.jar

@jkasten2
Copy link
Member

@robersant This plugin is now upgrades to + (latest) versions instead of ignoring them. The ignoring wasn't intentional and was fixed in https://github.com/OneSignal/OneSignal-Gradle-Plugin/releases/tag/0.11.2. However this does cause different behavior is upgrading Android dependencies.

In your case you are most likely using an old version of PhoneGap in your cli. I recommend updating this to the latest to fix this issue. This can be updated in your config.xml and I believe 8.0.0 is the current latest.

If this doesn't fix your issue it looks like a fix is coming to to cordova-android@7.2.0
apache/cordova-android#450
Currently PhoneGap-CLI 8.0.0 = cordova-android@7.0.0.
The missing Google libraries from jcenter wasn't always an issue.
https://stackoverflow.com/questions/49839322/errorfailed-to-resolve-android-arch-corecommon1-1-0/50885939#50885939

Also this issue should be fixed in cordova-plugin-googleplus@5.3.0 noted by versions 11.8.0 defined here:
https://github.com/EddyVerbruggen/cordova-plugin-googleplus/blob/5.3.0/plugin.xml#L32-L33

@jkasten2
Copy link
Member

@robersant Closing this issue due to inactivity.

If you are still seeing an issue please open a new issue under OneSignal-Cordova-SDK as this is the SDK related to your issue. Thanks

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

No branches or pull requests

2 participants