react-native-shopify icon indicating copy to clipboard operation
react-native-shopify copied to clipboard

Unable to resolve dependency..

Open austincline09 opened this issue 5 years ago • 3 comments

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 avatar May 22 '19 16:05 austincline09

@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.

jihokim2 avatar Aug 14 '19 05:08 jihokim2

I am facing same problem with react-native version 0.59.9 but unable to solve with given solution.

harshdvaid24 avatar Sep 13 '19 06:09 harshdvaid24

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

ayushjain1796 avatar Mar 09 '20 10:03 ayushjain1796