question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Non-actionable error message from strict version check

See original GitHub issue

Describe the bug After updating to ‘com.google.gms:google-services:4.2.0’ we get the following error message

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

Dependency failing: com.nimbusds:nimbus-jose-jwt:5.1 -> net.minidev:json-smart@[1.3.1,2.3], but json-smart version was 2
.3.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'redacted' depends on project 'app' which depends onto com.redacted:redacted@1.8.13
-- Project 'redacted' depends on project 'app' which depends onto com.redacted:redacted@1.1
8.254

This error message does not contain enough information to fix the dependency conflict. We don’t know which Google Play Services library that has a conflict and more importantly we do not know which version json-smart it depends on.

Workaround available by disabling the strict version check.

To Reproduce Complete steps to reproduce the behavior are unknown, and that’s the problem.

Expected behavior The plugin should produce an error message with a reference to which Google Service Library has the conflict and what version it depends on.

Desktop (please complete the following information):

  • Gradle version: 4.6
  • Android Studio version 3.2.1 (stable)
  • Plugin name and version: google-services 4.2.0

Additional context The same dependency conflict are discussed here: https://github.com/Microsoft/react-native-code-push/issues/1448 https://github.com/invertase/react-native-firebase/issues/1676

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
clownba0tcommented, Jul 24, 2019

4.3.0 seems to require a different approach - this works for me in my app build.gradle file:

apply plugin: 'com.google.gms.google-services'

googleServices {
    disableVersionCheck = true
}
3reactions
zhiqiaocommented, Jan 22, 2019

No update so far, I’ll chase up internally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ActiveModel::Errors - Rails API
Active Model Errors Provides error related functionalities you can include in your object for handling error messages and interacting with Action View helpers....
Read more >
Unity 2022.1.0b5
Package Manager: Improved the wording on the warning message when a user is using a different version of a package than the recommended...
Read more >
Array.from polyfill check fails to trigger warning under certain ...
However, this check fails due to not using a strict equality check for true. ... We have a code base still using an...
Read more >
The Checker Framework Manual: Custom pluggable types ...
Alternately, you can build the latest development version from ... More sound (strict) checking: enable errors that are disabled by default.
Read more >
Java SDK
Add prerelease-WePay-Java-SDK-version.jar as a library for your site. ... a strict compile-time check that all exceptions have been caught.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found