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

Could not resolve all files for configuration ':react-native-shopify:debugCompileClasspath'.

Open harshdvaid24 opened this issue 5 years ago • 3 comments

hello @aesqe ,

I am facing this issue by using react-native-shopify Can you please help me with it.

"react-native": "0.59.9", "react-native-shopify": "^0.2.7",

> Could not resolve com.squareup.okhttp3:okhttp:{strictly 3.2.0}.
     Required by:
         project :react-native-shopify
      > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp:3.12.1'
           Constraint path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.squareup.okhttp3:okhttp:{strictly 3.2.0}' because of the following reason: debugRuntimeClasspath uses version 3.2.0
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.shopify.mobilebuysdk:buy:2.1.0' --> 'com.squareup.retrofit2:retrofit:2.0.1' --> 'com.squareup.okhttp3:okhttp:3.2.0'
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.shopify.mobilebuysdk:buy:2.1.0' --> 'com.squareup.okhttp3:logging-interceptor:3.2.0' --> 'com.squareup.okhttp3:okhttp:3.2.0'

   > Could not resolve com.squareup.okio:okio:{strictly 1.6.0}.
     Required by:
         project :react-native-shopify
      > Cannot find a version of 'com.squareup.okio:okio' that satisfies the version constraints: 
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okio:okio:1.15.0'
           Constraint path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.squareup.okio:okio:{strictly 1.6.0}' because of the following reason: debugRuntimeClasspath uses version 1.6.0
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'

   > Could not resolve com.squareup.okhttp3:okhttp-urlconnection:{strictly 3.2.0}.
     Required by:
         project :react-native-shopify
      > Cannot find a version of 'com.squareup.okhttp3:okhttp-urlconnection' that satisfies the version constraints: 
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1'
           Constraint path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.squareup.okhttp3:okhttp-urlconnection:{strictly 3.2.0}' because of the following reason: debugRuntimeClasspath uses version 3.2.0
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.shopify.mobilebuysdk:buy:2.1.0' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.2.0'

   > Could not resolve com.squareup.okhttp3:okhttp:3.12.1.
     Required by:
         project :react-native-shopify > com.facebook.react:react-native:0.59.9
         project :react-native-shopify > com.squareup.okhttp3:okhttp-urlconnection:3.12.1
      > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp:3.12.1'
           Constraint path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.squareup.okhttp3:okhttp:{strictly 3.2.0}' because of the following reason: debugRuntimeClasspath uses version 3.2.0
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.shopify.mobilebuysdk:buy:2.1.0' --> 'com.squareup.retrofit2:retrofit:2.0.1' --> 'com.squareup.okhttp3:okhttp:3.2.0'
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.shopify.mobilebuysdk:buy:2.1.0' --> 'com.squareup.okhttp3:logging-interceptor:3.2.0' --> 'com.squareup.okhttp3:okhttp:3.2.0'

   > Could not resolve com.squareup.okhttp3:okhttp-urlconnection:3.12.1.
     Required by:
         project :react-native-shopify > com.facebook.react:react-native:0.59.9
      > Cannot find a version of 'com.squareup.okhttp3:okhttp-urlconnection' that satisfies the version constraints: 
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1'
           Constraint path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.squareup.okhttp3:okhttp-urlconnection:{strictly 3.2.0}' because of the following reason: debugRuntimeClasspath uses version 3.2.0
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.shopify.mobilebuysdk:buy:2.1.0' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.2.0'

   > Could not resolve com.squareup.okio:okio:1.15.0.
     Required by:
         project :react-native-shopify > com.facebook.react:react-native:0.59.9
         project :react-native-shopify > com.squareup.okhttp3:okhttp:3.12.1
      > Cannot find a version of 'com.squareup.okio:okio' that satisfies the version constraints: 
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okio:okio:1.15.0'
           Constraint path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.squareup.okio:okio:{strictly 1.6.0}' because of the following reason: debugRuntimeClasspath uses version 1.6.0
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'

   > Could not resolve com.squareup.okhttp3:okhttp-urlconnection:3.2.0.
     Required by:
         project :react-native-shopify > com.shopify.mobilebuysdk:buy:2.1.0
      > Cannot find a version of 'com.squareup.okhttp3:okhttp-urlconnection' that satisfies the version constraints: 
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1'
           Constraint path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.squareup.okhttp3:okhttp-urlconnection:{strictly 3.2.0}' because of the following reason: debugRuntimeClasspath uses version 3.2.0
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.shopify.mobilebuysdk:buy:2.1.0' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.2.0'

   > Could not resolve com.squareup.okhttp3:okhttp:3.10.0.
     Required by:
         project :react-native-shopify > com.facebook.react:react-native:0.59.9 > com.facebook.fresco:imagepipeline-okhttp3:1.10.0
      > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp:3.12.1'
           Constraint path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.squareup.okhttp3:okhttp:{strictly 3.2.0}' because of the following reason: debugRuntimeClasspath uses version 3.2.0
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.shopify.mobilebuysdk:buy:2.1.0' --> 'com.squareup.retrofit2:retrofit:2.0.1' --> 'com.squareup.okhttp3:okhttp:3.2.0'
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.shopify.mobilebuysdk:buy:2.1.0' --> 'com.squareup.okhttp3:logging-interceptor:3.2.0' --> 'com.squareup.okhttp3:okhttp:3.2.0'

   > Could not resolve com.squareup.okhttp3:okhttp:3.2.0.
     Required by:
         project :react-native-shopify > com.squareup.retrofit2:retrofit:2.0.1
         project :react-native-shopify > com.squareup.okhttp3:logging-interceptor:3.2.0
      > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp:3.12.1'
           Constraint path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.squareup.okhttp3:okhttp:{strictly 3.2.0}' because of the following reason: debugRuntimeClasspath uses version 3.2.0
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.facebook.react:react-native:0.59.9' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.shopify.mobilebuysdk:buy:2.1.0' --> 'com.squareup.retrofit2:retrofit:2.0.1' --> 'com.squareup.okhttp3:okhttp:3.2.0'
           Dependency path 'ASPLshopify:react-native-shopify:unspecified' --> 'com.shopify.mobilebuysdk:buy:2.1.0' --> 'com.squareup.okhttp3:logging-interceptor:3.2.0' --> 'com.squareup.okhttp3:okhttp:3.2.0'

harshdvaid24 avatar Sep 13 '19 07:09 harshdvaid24

Facing the same issue here, not sure what to do. :/

kiritAyya avatar Oct 27 '19 10:10 kiritAyya

same issue

kishansbs avatar Dec 11 '19 11:12 kishansbs

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