-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
No static method delimiterOffset in class Lokhttp3/internal/Util #31382
Comments
I worked around this by forcing all versions to
In the meantime it was bumped twice though, once to The workaround (would love to hear other folks opinion) is adding this in configurations.all { resolutionStrategy.force 'com.squareup.okhttp3:okhttp:3.12.12' } |
@stigi , thank you for the response. I will test this our in an upcoming test version and see how it goes. Will update you with the result. |
Hi, I released an update with the changes you proposed and things seems to have fixed. |
Heads up, react-native v0.65 will have #31084 merged. It is advisable to remove that workaround when upgrading. In our case it is even necessary to prevent crashes. |
Thanks a lot for the heads up. Will make sure to revert it back once v65 is stable. |
Android app crashes in some devices and only in production.
Below is the error logs I collected from Sentry Logs and Play Store Crash reports.
Description
Sentry Log:
No static method delimiterOffset(Ljava/lang/String;IILjava/lang/String;)I in class Lokhttp3/internal/Util; or its super classes (declaration of 'okhttp3.internal.Util' appears in base.apk!classes3.dex)
Play Store Crash Logs
React Native version:
"react": "17.0.1",
"react-native": "0.64.0"
"node": v14.8.0
Steps to reproduce
I am unable to reproduce this error in debug or in all release versions.
This only happens for a small set of our users, 155 users so far, with 1.2K events count.
From StackOverflow
Below linked SO answer seems to be almost similar issue to this.
But in RN 64, okhttp 4.x is already installed I guess and I have no messed with any of its dependencies.
https://stackoverflow.com/questions/63365254/okhttp-error-during-react-navtive-get-request
Additional Info
This is the only occurrence of okhttp in my entire codebase. This was added while using RN Upgrade Helper to upgrade from RN 62.2 to 64.0 version. I am not sure if this is any cause for the issue above.
The text was updated successfully, but these errors were encountered: