-
Notifications
You must be signed in to change notification settings - Fork 51
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
App crashes during the discovery for local mobile (TTP) #504
Comments
Hi @TatsuUkraine, thanks for reporting. What target SDK version are you using? We recommend that you use 34, and we are aware of an issue when using target SDK 35. Are you able to reproduce this error on a device you have access to? Any other errors from logcat would be helpful in diagnosing this issue. |
@sidhant-stripe hi, target sdk is set to 34 currently, as for more details, I will see what I can do. This issue can be reproduced only when you do do discovery with simulator off. Which means it can't be done in debug builds. But I will see what additional info I can get |
|
Here is our app Gradle config
And Gradle for plugin that contains terminal sdk we have this
|
so far it looks to me that the main issue here is that stripe terminal SDK conflicts with desugar_jdk_libs v1.2.2, where the support of Optional class was introduced, which leads to class conflicts in the stripe terminal sdk |
Thanks for the additional info! Does it work without desugaring? My understanding is that desugaring is not necessary if your |
It's required for a different third-party package, at least according to its docs |
@sidhant-stripe For now I did update desugaring sdk up to v2.1.2, which it seems fixed runtime exceptions on stripe terminal sdk. But I'm not 100% sure that it was right solution though) |
But you may be right, that with our min sdk we actually no need desugaring 🤔 |
Thanks for the update. Sounds like this issue is resolved, please feel free to open a new one with any further issues! |
Summary
Android app fails with the exception during the local mobile reader discovery process
Code to reproduce
Android version
Android 14
Impacted devices (Android devices or readers)
Pixel 6-8, Galaxy S*, overall it seems there are quite a lot different devices are affected
SDK version
Able to reproduce with 3.8.0 and 3.9.2
With 3.7.x all works fine
Other information
The text was updated successfully, but these errors were encountered: