New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Duplicate class org.tensorflow.lite #8166
Comments
Hi @jaynewstrom-stripe @ccen-stripe just checking in, is there any workaround for this problem? Need to use tflite in our project for a new requirement. |
hi @VinuPolly-Bonnet cardscan uses an different internal tensorlow dep, causing a conflict of classes, to use it with the default tflite runtime, please update the corresponding stripe related tflite modules as follows -
With this change you'll be able to use cardscan and Please note we're currently still using 2.11.0 for |
Hi @ccen-stripe , will try this out soon, thanks for the assistance, any news when will the 2.15.0 version support will be available? |
Summary
When trying to include the Tensorflow lite library in the gradle, the build process fails with duplicate classes issue. This is observed if the we include the stripe card scan library for the scanning functionality within Stripe.
Code to reproduce
Add the following in the app level gradle and try to build the app
The defaultConfig values are,
Impacted devices
Couldn't get successful build
Installation method
gradle dependency
Dependency Versions
kotlin: 1.9.0
stripe-android: 20.39.0
Android Gradle Plugin: 8.3.0
Gradle: gradle-8.4-bin.zip
Other information
Build error log:
The text was updated successfully, but these errors were encountered: