Could not resolve com.squareup.okhttp3:okhttp:3.4.1.
Required by:
project :detox
Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Constraint path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Constraint path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Constraint path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp-ws:3.4.1' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Could not resolve com.squareup.okio:okio:1.9.0.
Required by:
project :detox
Cannot find a version of 'com.squareup.okio:okio' that satisfies the version constraints:
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.squareup.okio:okio:1.15.0'
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
Constraint path ':detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.9.0' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 1.9.0
Constraint path ':detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.9.0' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 1.9.0
Could not resolve com.squareup.okhttp3:okhttp:3.4.1.
Required by:
project :detox
project :detox > com.squareup.okhttp3:okhttp-ws:3.4.1
Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Constraint path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Constraint path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Constraint path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp-ws:3.4.1' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Could not resolve com.squareup.okhttp3:okhttp:3.12.1.
Required by:
project :detox > com.facebook.react:react-native:0.58.3
project :detox > com.facebook.react:react-native:0.58.3 > com.squareup.okhttp3:okhttp-urlconnection:3.12.1
Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Constraint path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Constraint path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Constraint path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp-ws:3.4.1' --> 'com.squareup.okhttp3:okhttp:3.4.1'
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
Could not resolve com.squareup.okio:okio:1.15.0.
Required by:
project :detox > com.facebook.react:react-native:0.58.3
project :detox > com.squareup.okhttp3:okhttp:3.12.1
Cannot find a version of 'com.squareup.okio:okio' that satisfies the version constraints:
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.squareup.okio:okio:1.15.0'
Dependency path ':detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
Dependency path ':detox:unspecified' --> 'com.facebook.react:react-native:0.58.3' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
Constraint path ':detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.9.0' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 1.9.0
Constraint path ':detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.9.0' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 1.9.0
Changing my gradle dependency in my project/build.gradle from com.android.tools.build:gradle:3.3.0 to com.android.tools.build:gradle:3.2.1 seemed to fix it...
Description
Gradle is having trouble resolving dependencies due to conflicts with versions. List of packages:
Steps to Reproduce
Create a new project using
react-native init
Follow instructions to install on android https://github.com/wix/Detox/blob/master/docs/Introduction.Android.mdDetox, Node, Device, Xcode and macOS Versions
Detox: ^10.0.7 (would be great if the detox-cli would display its version using detox --version)
React Native: 0.58.3
Node: v10.13.0
Device: Any android device, it didn't reach the stage of device relevance.
Xcode: ios worked fine but 10.1
macOS: 10.14.2
Gradle wrapper version: 4.10.1
Java version 1.8.0_121
Device and verbose Detox logs