phonegap / phonegap-plugin-push

Register and receive push notifications
MIT License
1.94k stars 1.91k forks source link

Android fails to build after upgradet from v 2.2.3 to 2.3.0 #2898

Open Christianuchermannuc opened 4 years ago

Christianuchermannuc commented 4 years ago

When I try to build (ionic cordova build android) after upgradet from v 2.2.3 to 2.3.0 I got this error message:

In project 'app' a resolved Google Play services library dependency depends on another at an exact version (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 'app' depends onto com.nimbusds:nimbus-jose-jwt@5.1

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.

Node version

 10.15.3

Npm version

  6.7.0

Cordova CLI version and cordova platform version

cordova version: 7.1.0
cordova platform version android : 7.1.4

Installed plugin versions

"code-push": "^2.0.6",
"cordova-android": "7.1.4",
"cordova-ios": "4.5.5",
"cordova-plugin-app-version": "^0.1.9",
"cordova-plugin-calendar": "^5.1.4",
"cordova-plugin-code-push": "^1.11.18",
"cordova-plugin-datepicker": "^0.9.3",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-dialogs": "^2.0.1",
"cordova-plugin-file": "6.0.1",
"cordova-plugin-file-transfer": "^1.6.3",
"cordova-plugin-inappbrowser": "^3.1.0",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^4.1.0",
"cordova-plugin-market": "^1.2.0",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-plugin-zip": "^3.1.0",
"cordova-sqlite-storage": "^3.0.0",
"cordova-support-google-services": "^1.3.2",
"phonegap-plugin-multidex": "^1.0.0",
"phonegap-plugin-push": "^2.3.0"
Christianuchermannuc commented 4 years ago

The combination of these two pligins cause the error:

"cordova-plugin-code-push": "^1.11.18" "phonegap-plugin-push": "^2.3.0"