react-native-shopify
react-native-shopify copied to clipboard
Unable to resolve dependency..
I am no longer to run my application on android. It keeps mentioning this squareup dependency and says this module is affected. It seems like it's also looking for different versions of it as well and I don't know why or where I can fix this. Here is what my error messages look like every time I try to build:
ERROR: Unable to resolve dependency for ':react-native-shopify@debug/compileClasspath': Could not resolve com.squareup.okhttp3:okhttp:3.2.0. Show Details Affected Modules: react-native-shopify
ERROR: Unable to resolve dependency for ':react-native-shopify@debug/compileClasspath': Could not resolve com.squareup.okio:okio:1.6.0. Show Details Affected Modules: react-native-shopify
ERROR: Unable to resolve dependency for ':react-native-shopify@debug/compileClasspath': Could not resolve com.squareup.okhttp3:okhttp-urlconnection:3.2.0. Show Details Affected Modules: react-native-shopify
ERROR: Unable to resolve dependency for ':react-native-shopify@debug/compileClasspath': Could not resolve com.squareup.okhttp3:okhttp:3.12.1. Show Details Affected Modules: react-native-shopify
ERROR: Unable to resolve dependency for ':react-native-shopify@debug/compileClasspath': Could not resolve com.squareup.okhttp3:okhttp-urlconnection:3.12.1. Show Details Affected Modules: react-native-shopify
ERROR: Unable to resolve dependency for ':react-native-shopify@debug/compileClasspath': Could not resolve com.squareup.okio:okio:1.15.0. Show Details Affected Modules: react-native-shopify
ERROR: Unable to resolve dependency for ':react-native-shopify@debug/compileClasspath': Could not resolve com.squareup.okhttp3:okhttp-urlconnection:3.2.0. Show Details Affected Modules: react-native-shopify
ERROR: Unable to resolve dependency for ':react-native-shopify@debug/compileClasspath': Could not resolve com.squareup.okhttp3:okhttp:3.10.0. Show Details Affected Modules: react-native-shopify
ERROR: Unable to resolve dependency for ':react-native-shopify@debug/compileClasspath': Could not resolve com.squareup.okhttp3:okhttp:3.2.0. Show Details Affected Modules: react-native-shopify
@austincline09 I found the way. But this way make you have custom library. In react-native-shopify/app/build.gradle + implementation "com.squareup.okhttp3:okhttp:3.12.1" + implementation "com.squareup.okhttp3:okhttp-urlconnection:3.12.1" It makes the problem fixed.
I am facing same problem with react-native version 0.59.9 but unable to solve with given solution.
You just have to change few things, For that, go to node_module/react-native-shopify/android/build.gradle and in the dependencies section change the compile and api with implementation