-
Notifications
You must be signed in to change notification settings - Fork 159
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
0.36.0 Crash on Android <=9 -> okhttp3 ExceptionInInitializerError #450
Comments
@let-it-snow , can you provide which version of Android Studio, I'm trying 2021.2.1, and how do you enact |
@sreuland Hi,
|
@sreuland you can try this demo project that demonstrates this issue with the latest Java Stellar SDK. Attached is a screen recording of what happened. The crash doesn't happen when using an emulator with API 30, but it crashes with API 21 (not sure what is the latest API version that works). java-stellar-sdk-android-api21-error.mp4 |
@lijamie98 @marcelosalloum , any thoughts on this android runtime conflict as well, wondering if maybe it's time to just replace okhttp with a different lib like apache httpclient to avoid it |
I remember seeing this. If I remember it correctly, it has some conflict with the library shipped with Kotlin. I am not sure if replacing okhttp would avoid the problem though. |
@lijamie98 is this still an issue or have you been able to resolve it? |
What version are you using?
Newest version 0.36.0
What did you do?
Create the
org.stellar.sdk.Server("https://horizon.stellar.co/")
object in any place of the project -> You will receive the crash:java.lang.ExceptionInInitializerError
on the Android version <=9Steps to reproduce:
org.stellar.sdk.Server("https://horizon.stellar.co/")
object in any place.ExceptionInInitializerError
.What did you expect to see?
No any crashes.
What did you see instead?
Crash on the Android <=9.
Thanks.
The text was updated successfully, but these errors were encountered: