shoutem / react-native-shopify

React Native bridge to Shopify Buy SDK
261 stars 42 forks source link

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

Open harshdvaid24 opened 5 years ago

harshdvaid24 commented 5 years ago

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'
kiritAyya commented 4 years ago

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

kishansbs commented 4 years ago

same issue

ayushjain1796 commented 4 years ago

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