google / play-services-plugins

Plugins to help with using Google Play services SDK.
https://developers.google.com/android/guides/overview
Apache License 2.0
464 stars 137 forks source link

Json-smart dependency version conflict #114

Open originx opened 4 years ago

originx commented 4 years ago

We are required to use libraries that use the nimbus library (that transitively pulls net.minidev:json-smart:2.3). Google play services uses an older version and thus expects net.minidev:json-smart:1.3.1 to be used. Strict-version-matcher-plugin of course breaks here as it is expected.

Could you please update your dependency usage to latest stable versions of nimbus/json-smart libs if possible?

lucianomlima commented 2 years ago

This come again in 2022 but for a React Native app (v0.63) with react-native-code-push that throws error during build

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':react-native-code-push:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':react-native-code-push:debugCompileClasspath'.
   > Could not resolve net.minidev:json-smart:[1.3.1,2.3].
     Required by:
         project :react-native-code-push > com.nimbusds:nimbus-jose-jwt:5.1
      > Failed to list versions for net.minidev:json-smart.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/net/minidev/json-smart/maven-metadata.xml.
            > Could not HEAD 'https://jcenter.bintray.com/net/minidev/json-smart/maven-metadata.xml'.
               > org.apache.http.client.ClientProtocolException (no error message)

We're using play-services 4.3.3