-
Notifications
You must be signed in to change notification settings - Fork 46
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
Expected Android API level 21+ but was 30 #128
Comments
Hi Alex -- as an immediate workaround, you can target API level 29. We'll keep this issue open until we provide a permanent fix. |
I would do this if I can, but the module which interact with the stripe sdk, is the part of big application, which was migrated to Level 30. |
We have a release scheduled for later in Q2. |
Thanks, let's keep it open till then. |
Hi Alex -- I have confirmed locally that our internal beta release does fix this issue. So, this issue will be fixed in the next public release later in Q2. It will be a 2.x beta release. |
is it possible for me to try the beta? |
Hi Alex -- unfortunately, right now, we're limiting the beta release to a small set of users. |
Hi Alex -- I have good news. We've released 1.0.18, which I believe has fixed this issue. I'm going to optimistically close this, but feel free to reopen or create a new issue if you have the same or a similar problem. |
Thanks a lot. I'm going to check it upcoming days. |
I can confirm the fix works as expected ;). Thanks for working on this! |
Summary
Trying to build an app for the API Level 30 and got the exception in initialize phase
Stack trace shows that the problem cames from
com.stripe.okhttp3.internal.platform
package.Code to reproduce
The simple call
Terminal.initTerminal(context, LogLevel.VERBOSE, ConnectionTokenProvider, DiscoveryListener)
Android version
Android 11
Impacted devices (Android devices or readers)
Any device with Android 11 and emulator
SDK version
com.stripe:stripeterminal:1.0.17
Other information
I've checked
com.stripe.okhttp3.internal.platform.AndroidPlatform
which i found in the stacktrace above.And found this code
Seems like those non-sdk methods (eg:
setUseSessionTickets
,setHostname
, etc.) were moved or changed in Android 11https://developer.android.com/about/versions/11/non-sdk-11
The text was updated successfully, but these errors were encountered: