-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Android] Deprecated OKHeaders from OKHttp #78
Comments
Trying to use Modifying the RNFetchBlobReq.java file did work, in fact, after looking rapidly at the code, I didn't even find where OKHeaders was used. |
@mlumbroso , thank you so much for doing the investigation 👍 I haven't tried the library on RN 0.31 yet, but I'll try to figure out where the problem is 😏 |
@mlumbroso , I've fixed the issue by removing the import state, please try install latest version |
I believe it is still not fixed as I am getting errors like:
Also, I've found that lib's
and changing it to
fixes the problem |
@tadas-subonis , Thank you for your information. I'll reopen this issue in case someone getting the same error, I'll take some time to fix this issue. |
Added OkHttp dependency cddd160 |
Add Android OkHttp dependency that overrides react-native's OkHttp dependency may lead to app crash when using |
it is still not fixed as I am getting errors like: On compiling with RN 0.31 |
@czciou , which version of react-native-fetch-blob are you using ? |
No problem on updating to the last release, seems fixed to me :-) |
Okay, let's close this issue. |
Using react-native-fetch-blob 0.9.6 and I'm still getting this issue :( RN 0.33.0 |
Scrap last comment. I made a brand new project and after installing |
On compiling with RN 0.31, I have this error message :
After a little investigation, OKHeaders.java was removed from version 3.4.0
https://github.com/square/okhttp/tree/parent-3.4.0/okhttp/src/main/java/okhttp3/internal/http
Last version to include it is 3.3.1
https://github.com/square/okhttp/tree/parent-3.3.1/okhttp/src/main/java/okhttp3/internal/http
I don't know what's best here :
Don't know the potential drawbacks of either method, will let you make that choice ;-)
The text was updated successfully, but these errors were encountered: