-
Notifications
You must be signed in to change notification settings - Fork 49
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
Conflicts in okhttp versions in Paystack SDK and React Native 0.58+ #28
Comments
A conflict between versions of dependencies between the underlying Paystack Android SDK and React Native could cause an issue like this. A workaround would be to add the following code block to the subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (!details.requested.name.contains('multidex')) {
if (details.requested.group == 'com.android.support') {
details.useVersion "28.0.0"
}
if (details.requested.group == 'com.squareup.okhttp3') {
details.useVersion "3.12.1"
}
if (details.requested.group == 'com.squareup.okio') {
details.useVersion "1.15.0"
}
}
}
}
} This solution also works for the newly released RN v0.59. I hope it helps! |
Alright @christiandrey thanks so much |
None of this working |
Can someone help with this stuff |
Can you please put up the actual error you're getting here? Might help in tracking down the issue. Thanks. |
exactly something like this |
Can you show the contents of your root and app build.gradle files? |
i have put it in the exact location as you said bro, but the error changed to the above screenshot |
Okay, this is a simpler error. You have this issue because the |
|
because the one under android-src-main didnt work |
Ideally, it should be the one in |
worked --- |
No, it doesn't have any security implication. |
i was able to compile and my emulator worked fine... Though i have not used any of the api, but great thanks for this.... @christiandrey you are the best.. |
Great stuff @christiandrey helping out today, cheers! If you added a feature you want me to know about in your fork, I would be happy to receive a PR. @nkorojoseph glad you got stuff to work! |
hi @tolu360 and @christiandrey, please can you help me with `chargeCard() {
}` |
All these are detailed in the docs, read them carefully here. And if you have further issues unrelated to the conflict in okhttp library, I would recommend you open a new issue for those. Cheers |
Ok, thanks.... |
Please see #38, follow the guides and only re-submit your issue if it persists thereafter. Cheers! |
Hi @tolu360. Please this package breaks when building a React Native 0.58.x App with following errors
Could not resolve com.squareup.okhttp3:okhttp:3.12.1 required by [email protected]
. Any plans to upgrade it?The text was updated successfully, but these errors were encountered: