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 Support For OkHttp (3.8.0) - Native Modules SDK Compatibility Issues #13996
Comments
It was very recently upgraded to v3.8.0: 93a1d59 So master should have what you need. |
@fkgozali Thank you for updating the version of |
Will this break again with 3af9be5 ? |
@mikelambert |
this was downgraded due to an issue that caused breakage to existing apps: square/okhttp#3308 cc @emilsjolander in case there's more details to add |
@fkgozali Thanks, when a fix is found it should be updated once again. |
I find okhttp 3.8.1 is fixed that bug. |
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally! If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution. |
Description
Was trying to implement a Java SDK into my React Native Android project, however after adding the SDK into my
build.gradle
the project would not build because the Java SDK requiredokhttp 3.7.0
but React Native does not support that version. The motive for adding this SDK into the project was for exposing native modules that use the Java SDK. Suggest updating the version ofokhttp
React Native uses, this would help with compatibility with other SDK's. This issue was also filed for the Java SDK to support React Native, however it would make more sense for React Native to update, this issue could be affecting many SDK's and could preventing developers from making native modules to extend their React Native projects. The issue filed on the Java SDK can be found here.When compiling the error will be:
Which is saying that there are two dependancies that require
okhttp
but different versions, therefore incompatible.For your reference, the dependency tree of my project can be seen below:
Reproduction Steps and Sample Code
NOTE: Assuming you can create React Native applications from the command line using the react-native-cli if not, please look at here.
Create a new React Native Project:
react-native init AwesomeProject
Open the Android Application and add the Watson Java SDK to
AwesomeProject/android/app/build.gradle
and make sure to sync Gradle:When compiling the error will be:
NOTE: This example is using the Watson Java SDK, but the same error would occur if using a different SDK that needed a version of
okhttp
greater than what React Native uses.Solution
Solution to this issue would be to update the version
okhttp
React Native uses to be greater than or equal to version 3.7.0.Additional Information
The text was updated successfully, but these errors were encountered: