-
Notifications
You must be signed in to change notification settings - Fork 509
[BUG] building cordova app fails when using barcode scanner plugin simultaneously #705
Comments
Plz use other channels for support inquiry, like Stackoverflow. Feel free to link your post here |
Now i am confused. Let's have a look again at #507 (comment):
So it doesn't make sense here to use And yes, i will create a stackoverflow issue even if @fredgalvao spoke about opening a ticket here. Thx again for taking time to answer. |
sorry it's me I was confused too and mixed the info, tired |
@iwan-uschka have a look to your see https://stackoverflow.com/questions/52217275/cordova-plugin-facebook4-couldnt-make-the-app-start-android last week people faced the same issue and one solved it by using 4.28.0 and the other 4.35.0 if you can't use 4+ the game is to find which one is only accepted by the other(s) plugin(s) you are using note: it happens often and it isn't a bug or something we could fix in the plugin I think, such a complex ecosystem with a lot of dependencies. that's why the variable |
I think you mixed it again :) 27.1.1 is Android SDK for sure and 4.+ is Facebook SDK (for Android). My
Like i mentioned above: without having the barcode scanner plugin installed, everything works fine. So no need to change the Facebook Android SDK version, right? I can't imagine that the barcode scanner plugin has anything to deal with the Facebook Android SDK. So from my point of view it doesn't rely on the correct Facebook SDK version. If this is the essential problem please tell me. |
@iwan-uschka I should go to bed, these 14 hours of work for a Monday are too much 😂 Facebook SDK or Android SDK, anyhow it's a conflict not a bug I think. The trick is to find the right value I read again the linked post, and I think what he meant is that the right value to find it the one when you install the barcode scanner plugin, not this plugin. from their doc
I just gonna allow my self to ping @fredgalvao
|
(I was already writing a reply when you did yours, but here we go)
Facebook SDK will transitively ask for a specific version of the android-support lib, and it's not clear through the
We can see it's asking for version 27.0.2 of the components from the So, you end up with the following tree:
Which is a conflict on But remember that, by using |
thx for the feedback @fredgalvao 👍 let's rename the variable, I will try to do and publish it at the end of the week, I opened and assigned my self a feature request about it #706 |
I think i understand the dependency situation here now and that the Facebook SDK version is important regarding I also learned here that Unfortunately it didn't work out. I tried several combinations of everything:
I also tried using cordova-android-support-gradle-release. I am ending up getting the same error as above. So i really don't know what to do here next but don't wanna bother you. I am just wondering if i am the only one facing that issue. I will try to find some extra help at stackoverflow. |
@iwan-uschka What did you get with |
Hi, i'm back from GSM dead zone or whatever it's called. Using |
I am inatalling both plugins like this: ionic cordova plugin add phonegap-plugin-barcodescanner --variable ANDROID_SUPPORT_V4_VERSION="27.0.2" also tryed "27.+" cordova-plugin-facebook4 version=> 3.2.0 And is still get the above error
Maybe anyone solved this problem? I tryed everything and only thing to make a build succeed is to remove barcode plugin or facebook plugin |
@JustasKuizinas You just have to change the facebook_android_sdk_version to be a bit smaller, I had the same error and all I did was this:
and it started to work (don't forget to delete platofrms/android, and add it again.) |
@ChrisEelmaa I really tried your solution, but around here it didn't work. Has been a long time since I tried to solve this issue, but without success.
|
ensure you're using the latest versions of both cordova-plugin-facebook4 and barcode @shuhikari |
@ChrisEelmaa I tried, update also cordova-android@8.0.0 and the other plugins manually and still |
Chriss-MBP:app chriseelmaa$ cordova -v
I used (cordova platform add android@6.4.0 --save). Remove any cordova-*-gradle plugins if you have them installed (cordova-android-support-gradle-release). |
@ChrisEelmaa Thank you so much, worked like a charm. Next step is google login. |
Hi, But I finaly made it with "cordova -v" : 8.1.2 (cordova-lib@8.1.1) here are the commands i used :
And after that recompile, it worked for me and my collegues too. |
I'm still getting this error: Please someone has a fix for that? |
why nobody to fix this issue: |
Note that this is still an issue.
|
For those who are using ionic 4 + capacitor |
Bug or feature request
[x] I'm reporting a reproducible issue with the code
[ ] I'm reporting a feature request
Describe the Bug of feature request
Cordova app can't be built when using cordova-plugin-facebook@2.4.0 and phonegab-plugin-barcodescanner@8.0.0 simultaneously.
Expected Behavior
Cordova app should be built.
Plugin version, OS, devices, etc
config.xml:
Additional Context
Already tried to solve the issue here: #507.
Error Log
The text was updated successfully, but these errors were encountered: