Closed ignaciolarranaga closed 7 years ago
Link to the push-plugin where I also reported the issue: https://github.com/NativeScript/push-plugin/issues/101
The problem seems to be related to this dependencies in the include.gradle:
dependencies {
// [START gms_compile]
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : '+'
compile "com.google.android.gms:play-services-analytics:+"
// [END gms_compile]
}
I noticed if + is replaced by a concrete version (i.e. 10.2.0) the problem does not happen. Is this an option ?
Not really, we've had a bunch of PRs and issues specifically related to the gradle def to make it play nice with other plugins.
I would put this back on the push plugin or back to the NS Android runtime repo to globally come up with a solution to this.
On Feb 16, 2017 6:14 AM, "Ignacio Larrañaga" notifications@github.com wrote:
The problem seems to be related to this dependencies in the include.gradle:
dependencies { // [START gms_compile] def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : '+' compile "com.google.android.gms:play-services-analytics:+" // [END gms_compile] }
I noticed if + is replaced by a concrete version (i.e. 10.2.0) the problem does not happen. Is this an option ?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sitefinitysteve/nativescript-google-analytics/issues/29#issuecomment-280303403, or mute the thread https://github.com/notifications/unsubscribe-auth/ABeI6AumltZpLZa06yIEyhiX_5bOQ_eGks5rdC-pgaJpZM4MC0zK .
Is possible to define googlePlayServicesVersion somewhere in the project to be replaced it here and workaround the problem ? (like in the package.json or something ?)
Don't think so, would be a good workaround to suggest to turn though. That definition would override what's set in the plugins added.
But you'd have to go to the ns core team to request
On Feb 16, 2017 6:28 AM, "Ignacio Larrañaga" notifications@github.com wrote:
Is possible to define googlePlayServicesVersion somewhere in the project to be replaced it here and workaround the problem ? (like in the package.json or something ?)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sitefinitysteve/nativescript-google-analytics/issues/29#issuecomment-280306021, or mute the thread https://github.com/notifications/unsubscribe-auth/ABeI6FVhsieK-qbKcQhvk1mE_rtkKb3cks5rdDLQgaJpZM4MC0zK .
Thanks, I created a temporary workaround in a fork while try some other alternatives. Please let me know if you have some update on your side.
Don't you prefer to keep the issue open till we get some final solution ?, because indeed the usage of both plugins together will produce an error. We can adjust the title if preferred, something like: Compatibility problem between nativescript-google-analytics and nativescript-push-notifications.
Well I mean... there's nothing that I can do to resolve it, I think the current state reflects compatibility between this plugin and firebase. The issue really lies with the notification plugin itself or the core to come up with some way to manage these shared dependancies.
I'm not by any means saying this is not an issue, but this is just the wrong repo for it, no?
Thanks, I reopen the issue on their repo, if you want to make a comment I think will be appreciated.
Hi I noticed both plugins generate some conflict when used together, and not sure which one is the best to log the issue or the most appropriate to make and adjustment/suggestion ?
Sorry for the inconvenience if the problem is related to the push-notifications plugin.
The problem as the title says is the version of google-services. For reproduction:
and you will get:
Here is the complete trace:
I think the problem might be related to this, but just guessing: