Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Incompatibilty phonegap-plugin-push whit cordova-plugin-googlemaps #2928

Open
u01ser opened this issue Jun 20, 2020 · 5 comments
Open

Incompatibilty phonegap-plugin-push whit cordova-plugin-googlemaps #2928

u01ser opened this issue Jun 20, 2020 · 5 comments

Comments

@u01ser
Copy link

u01ser commented Jun 20, 2020

When i use "phonegap-plugin-push" and "cordova-plugin-googlemaps" plugins and i tried to open a project on android studio:

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

Dependency failing: com.google.android.gms:play-services-stats:15.0.1 -> com.google.android.gms:play-services-basement@[
15.0.1], but play-services-basement version was 16.0.1.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-messaging@{strictly 17.0.0}
-- Project 'app' depends onto com.google.android.gms:play-services-places-placereport@{strictly 16.0.0}
-- Project 'app' depends onto com.google.android.gms:play-services-location@{strictly 16.0.0}
-- Project 'app' depends onto com.google.android.gms:play-services-tasks@{strictly 16.0.1}
-- Project 'app' depends onto com.google.android.gms:play-services-basement@{strictly 16.0.1}
-- Project 'app' depends onto com.google.android.gms:play-services-base@{strictly 16.0.1}
-- Project 'app' depends onto com.google.firebase:firebase-iid@{strictly 16.0.0}
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.android.gms:play-services-maps@{strictly 16.0.0}
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected].+
-- Project 'app' depends onto com.google.android.gms:play-services-stats@{strictly 15.0.1}
-- Project 'app' depends onto com.google.firebase:firebase-measurement-connector@{strictly 16.0.0}
-- Project 'app' depends onto com.google.firebase:firebase-common@{strictly 16.0.0}
-- Project 'app' depends onto com.google.firebase:firebase-iid-interop@{strictly 16.0.0}

For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your build.gradle file.

I read a lot of documentation on internet, and i understand that the problem is because the plugins uses different versions, but i dont know how can i fix it.

Thanks for all.

I put the issue in:
mapsplugin/cordova-plugin-googlemaps#2798

And i think FCM version is old. How can i fix this problems?

@spinninghamster
Copy link

I have the exact same problem. Have you found a solution?

@spinninghamster
Copy link

I have the same problem and was just able to build using this:

#2902

Try it and let me know. I haven't found any bugs or downsides yet. Will report if I find any!

@u01ser
Copy link
Author

u01ser commented Jun 23, 2020

I have the same problem and was just able to build using this:

#2902

Try it and let me know. I haven't found any bugs or downsides yet. Will report if I find any!

Not work for me.

For me only works with (in package.json)

"phonegap-plugin-push": {
"ANDROID_SUPPORT_V13_VERSION": "27.+",
"FCM_VERSION": "17.0.+"
}

And (in config.xml):

@spinninghamster What is your solutions with FCM_VERSION="17.3.4"??

@spinninghamster
Copy link

I have the same problem and was just able to build using this:
#2902
Try it and let me know. I haven't found any bugs or downsides yet. Will report if I find any!

Not work for me.

For me only works with (in package.json)

"phonegap-plugin-push": {
"ANDROID_SUPPORT_V13_VERSION": "27.+",
"FCM_VERSION": "17.0.+"
}

And (in config.xml):

@spinninghamster What is your solutions with FCM_VERSION="17.3.4"??

What is not working for you? Not compiling? Or no push received?

I was able to compile with that exact command:

cordova plugin add phonegap-plugin-push --variable FCM_VERSION="17.3.4"

I did not try push notifications yet.

@u01ser
Copy link
Author

u01ser commented Jun 23, 2020

When i open the project on Android Studio, the gradle sync issues are:

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

Dependency failing: com.google.android.gms:play-services-stats:15.0.1 -> com.google.android.gms:play-services-basement@[
15.0.1], but play-services-basement version was 16.0.1.

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

No branches or pull requests

2 participants