You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/08/14 04:25:36 UTC

[GitHub] [cordova-android] breautek commented on issue #1050: Android build failed with cordova-android@9.0.0

breautek commented on issue #1050:
URL: https://github.com/apache/cordova-android/issues/1050#issuecomment-673875787


   You have plugins that are incompatible together.
   
   `onesignal-cordova-plugin` is incompatible with `cordova-plugin-printer`
   
   Both will build independently, but when used together they will not build. This is because `onesignal-cordova-plugin` doesn't appear to be compatible with version 28 of android support libraries, but `cordova-plugin-printer` requires them.
   
   ```
   debugRuntimeClasspath - Resolved configuration for runtime for variant: debug
   +--- project :CordovaLib
   +--- com.onesignal:OneSignal:3.15.1
   |    +--- com.google.firebase:firebase-messaging:[10.2.1, 17.3.99] -> 17.3.3
   |    |    +--- com.google.android.gms:play-services-basement:16.0.1
   |    |    |    \--- com.android.support:support-v4:26.1.0 -> 28 FAILED
   |    |    +--- com.google.android.gms:play-services-tasks:16.0.1
   |    |    |    \--- com.google.android.gms:play-services-basement:16.0.1 (*)
   |    |    +--- com.google.firebase:firebase-common:16.0.3
   |    |    |    +--- com.google.android.gms:play-services-basement:16.0.1 (*)
   |    |    |    \--- com.google.android.gms:play-services-tasks:16.0.1 (*)
   |    |    +--- com.google.firebase:firebase-iid:17.0.3
   |    |    |    +--- com.google.android.gms:play-services-basement:16.0.1 (*)
   |    |    |    +--- com.google.android.gms:play-services-stats:16.0.1
   |    |    |    |    \--- com.google.android.gms:play-services-basement:16.0.1 (*)
   |    |    |    +--- com.google.android.gms:play-services-tasks:16.0.1 (*)
   |    |    |    +--- com.google.firebase:firebase-common:16.0.3 (*)
   |    |    |    \--- com.google.firebase:firebase-iid-interop:16.0.1
   |    |    |         +--- com.google.android.gms:play-services-base:16.0.1
   |    |    |         |    +--- com.google.android.gms:play-services-basement:16.0.1 (*)
   |    |    |         |    \--- com.google.android.gms:play-services-tasks:16.0.1 (*)
   |    |    |         \--- com.google.android.gms:play-services-basement:16.0.1 (*)
   |    |    \--- com.google.firebase:firebase-measurement-connector:17.0.1
   |    |         \--- com.google.android.gms:play-services-basement:16.0.1 (*)
   |    +--- com.android.support:cardview-v7:[26.0.0, 27.99.99] -> 28 FAILED
   |    +--- com.android.support:support-fragment:[26.0.0, 27.99.99] -> 28 FAILED
   |    +--- com.android.support:customtabs:[26.0.0, 27.99.99] -> 28 FAILED
   |    +--- com.google.android.gms:play-services-location:[10.2.1, 16.0.99] -> 15.0.1
   |    |    +--- com.google.android.gms:play-services-base:[15.0.1,16.0.0) -> 16.0.1 (*)
   |    |    +--- com.google.android.gms:play-services-basement:[15.0.1,16.0.0) -> 16.0.1 (*)
   |    |    +--- com.google.android.gms:play-services-places-placereport:[15.0.1,16.0.0) -> 15.0.1
   |    |    |    \--- com.google.android.gms:play-services-basement:[15.0.1,16.0.0) -> 16.0.1 (*)
   |    |    \--- com.google.android.gms:play-services-tasks:[15.0.1,16.0.0) -> 16.0.1 (*)
   |    +--- com.google.android.gms:play-services-ads-identifier:[15.0.0, 16.0.99] -> 16.0.0
   |    |    \--- com.google.android.gms:play-services-basement:16.0.1 (*)
   |    \--- com.google.android.gms:play-services-base:[10.2.1, 16.1.99] -> 16.0.1 (*)
   \--- com.android.support:support-v4:28.+ -> 28 FAILED
   ```
   
   > I am able to build with api level 28 without any error.
   
   For me, targeting API 28 didn't change anything.
   
   You're options are to:
   
   - Bug opensignal to support android support libraries 28
   - Drop the `cordova-plugin-printer` and (hopefully) find an alternative
   - Try to downgrade `cordova-plugin-printer` to use android support libraries 27+
   
   You can do this by running the following commands:
   
   ```
   cordova plugin remove cordova-plugin-printer
   cordova plugin add cordova-plugin-printer --variable ANDROID_SUPPORT_V4_VERSION="27.+"
   ```
   
   The above does allow me to build successfully, however I assume the default was set to 28 for a reason, and I don't know if this will cause runtime errors. If you take this approach, make sure you test your app thoroughly.
   
   Because this isn't a bug with `cordova-android` I'll be closing this issue. If you need further assistance, I do invite you to our [slack](http://slack.cordova.io/)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org