braintree / braintree-android-drop-in

Braintree Drop-In SDK for Android
https://developers.braintreepayments.com/guides/drop-in/android/v2
MIT License
124 stars 79 forks source link

Duplicated Android Sdk #350

Open DowsingUK opened 2 years ago

DowsingUK commented 2 years ago

General information

Issue description

Is there a way to avoid this error? thank you so much!

FAILURE: Build failed with an exception.

sshropshire commented 2 years ago

Hi @DowsingUK thanks for using the Braintree SDK for Android. We have a 3rd-party jar library in common with iZettle we may have to investigate further on a potential solution.

In the meantime, would you be able to wrap either the BT SDK or iZettle SDK in it's own module and create a wrapper class of your own to interact with the SDK? If you then import it as implementation in your app, it may help fix duplicate symbol errors.

DowsingUK commented 2 years ago

Thank you! I'm trying your suggested solution I'll be posting about it soon

DowsingUK commented 2 years ago

Nothing is working I have tried everything and always an error pops up somewhere, is there any plan to release a fix for this?, thank you

DowsingUK commented 2 years ago

I think I found a potential solution using fat-aar I just don't know how secure is it and do you think it could create any malfunction in the SDK?

sshropshire commented 2 years ago

@DowsingUK Using a fat aar should be fine since this is a compile time issue. We are still following up to see if we can provide a solution on our end.