Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detox doesn't work with React-Native 0.59 on Android #1208

Closed
elyalvarado opened this issue Mar 14, 2019 · 38 comments
Closed

Detox doesn't work with React-Native 0.59 on Android #1208

elyalvarado opened this issue Mar 14, 2019 · 38 comments

Comments

@elyalvarado
Copy link
Contributor

elyalvarado commented Mar 14, 2019

Describe the bug
After upgrading React Native to version 0.59 detox fails compiling the Android project. The standalone Android project builds and works ok when not using detox. The output of the build process is the following:

> Task :detox:compileMinReactNative44DebugRenderscript FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':detox:minReactNative44DebugCompileClasspath'.
...

The full error output continues for a while (and is pasted at the end of this issue).

It looks like react native 0.59 upgraded many android libraries to newer versions, and the resolution in the detox project is failing for the following libraries:

  • com.google.code.findbugs:jsr305:2.0.1
  • com.squareup.okhttp3:okhttp:3.4.1
  • com.squareup.okio:okio:1.9.0

In all those cases the version provided by React Native is newer than the one being used by detox or any of its dependencies.

To Reproduce
Upgrade a working project to RN 0.59, and build any android configuration. Ex:

  1. detox build -c android.emu.debug

Expected behavior
Detox should work with newer react native version

Environment (please complete the following information):

  • Detox: 11.0.0
  • React Native: 0.59.0
  • Node: v8.15.0
  • Device: Android Emulator Nexus_5X_API_28
  • OS: Android

Device and Verbose Detox Logs

yarn run v1.13.0
$ yarn test:android:debug:build && yarn test:android:debug:test --watch
$ detox build -c android.emu.debug
cd android && ENVFILE=.env.e2e ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..

> Configure project :app
Reading env from: .env.e2e

> Configure project :react-native-reanimated
WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.

> Task :detox:compileMinReactNative44DebugRenderscript FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':detox:minReactNative44DebugCompileClasspath'.
> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
  Required by:
      project :detox
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints: 
        Dependency path 'Happy:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 2.0.1
        Constraint path 'Happy:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 2.0.1

> 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 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp-ws:3.4.1' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> '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 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.9.0' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 1.9.0
        Constraint path 'Happy: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 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp-ws:3.4.1' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
  Required by:
      project :detox > androidx.test.espresso:espresso-core:3.1.1
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints: 
        Dependency path 'Happy:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 2.0.1
        Constraint path 'Happy:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 2.0.1

> Could not resolve com.google.code.findbugs:jsr305:3.0.2.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.0
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints: 
        Dependency path 'Happy:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 2.0.1
        Constraint path 'Happy:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.12.1.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.0
      project :detox > com.facebook.react:react-native:0.59.0 > com.squareup.okhttp3:okhttp-urlconnection:3.12.1
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp-ws:3.4.1' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> '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.59.0
      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 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.9.0' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 1.9.0
        Constraint path 'Happy: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.google.code.findbugs:jsr305:3.0.1.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.0 > com.facebook.infer.annotation:infer-annotation:0.11.2
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints: 
        Dependency path 'Happy:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 2.0.1
        Constraint path 'Happy:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.10.0.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.0 > com.facebook.fresco:imagepipeline-okhttp3:1.10.0
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Constraint path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.4.1' because of the following reason: minReactNative44DebugRuntimeClasspath uses version 3.4.1
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.squareup.okhttp3:okhttp-ws:3.4.1' --> 'com.squareup.okhttp3:okhttp:3.4.1'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'Happy:detox:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
135 actionable tasks: 1 executed, 134 up-to-date
child_process.js:650
    throw err;
    ^

Error: Command failed: cd android && ENVFILE=.env.e2e ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..
    at checkExecSyncError (child_process.js:607:13)
    at Object.execSync (child_process.js:647:13)
    at Object.<anonymous> (/Users/elyalvarado/Workspace/Happy/HappyRN/node_modules/detox/local-cli/detox-build.js:26:6)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)
    at startup (bootstrap_node.js:204:16)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@jpgarcia
Copy link

Facing the same errors here with RN 0.59.1. I've pretty much the same environment:

Environment:

  • Detox: 11.0.0
  • React Native: 0.59.1
  • Node: 11.9.0
  • Device: Nexus_5X_API_28
  • OS: MacOS 10.14.3

@funador
Copy link

funador commented Mar 15, 2019

Same thing here after upgrading to Detox 11.0.0

  • Detox 11.0.0
  • React Native: 0.57.8
  • Node: 10.13.0
  • Device: Nexus_5X_API_28
  • OS: MacOS 10.14.3

@jerolan
Copy link

jerolan commented Mar 18, 2019

Has anyone been able to find a workaround?

  • Detox 11.0.0
  • React Native: 0.59.0
  • Node: 10.13.3
  • Device: Nexus_5_API_27
  • OS: MacOS 10.14.3

@kbrandwijk
Copy link

I was able to patch this by going into the node_modules/detox/android/detox/build.gradle file, and manually updating those deps:

    // minReactNative44Implementation 'com.squareup.okhttp3:okhttp:3.4.1'
    // minReactNative44Implementation 'com.squareup.okhttp3:okhttp-ws:3.4.1'

    minReactNative46Implementation 'com.squareup.okhttp3:okhttp:3.12.1'
    minReactNative46Implementation 'com.squareup.okio:okio:1.15.0'

The jsr305 one is a bit nasty, because that's from a deeper dependency. I fix that by forcing the right version in the android section of that same file:

    configurations.all {
        resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.2'
    }

@kbrandwijk
Copy link

For those of you using patch-package, here's the patch file:

diff --git a/node_modules/detox/android/detox/build.gradle b/node_modules/detox/android/detox/build.gradle
index 7185ab1..9c0494d 100644
--- a/node_modules/detox/android/detox/build.gradle
+++ b/node_modules/detox/android/detox/build.gradle
@@ -20,12 +20,16 @@ android {
         versionName "1.0"
     }
 
+    configurations.all {
+        resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.2'
+    }
+
     productFlavors {
         flavorDimensions "minReactNative"
-        minReactNative44 {
-            dimension "minReactNative"
+        // minReactNative44 {
+        //     dimension "minReactNative"
 
-        }
+        // }
         minReactNative46 {
             dimension "minReactNative"
         }
@@ -69,11 +73,11 @@ android {
 dependencies {
     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$_kotlinVersion"
 
-    minReactNative44Implementation 'com.squareup.okhttp3:okhttp:3.4.1'
-    minReactNative44Implementation 'com.squareup.okhttp3:okhttp-ws:3.4.1'
+    // minReactNative44Implementation 'com.squareup.okhttp3:okhttp:3.4.1'
+    // minReactNative44Implementation 'com.squareup.okhttp3:okhttp-ws:3.4.1'
 
-    minReactNative46Implementation 'com.squareup.okhttp3:okhttp:3.6.0'
-    minReactNative46Implementation 'com.squareup.okio:okio:1.13.0'
+    minReactNative46Implementation 'com.squareup.okhttp3:okhttp:3.12.1'
+    minReactNative46Implementation 'com.squareup.okio:okio:1.15.0'
 
     // Versions are in-sync with the 'androidx-test-1.1.0' release/tag of the android-test github repo,
     // used by the Detox generator. See https://github.com/android/android-test/releases/tag/androidx-test-1.1.0

@d4vidi
Copy link
Collaborator

d4vidi commented Mar 18, 2019

@elyalvarado There are few things to consider in this context:

  1. Please be sure to select the correct build flavor (i.e. minReactNative46 and not minReactNative44). On Android Studio, you can do so in the Build Variants tab. Otherwise you have to set up proper configuration for the missingDimensionStrategy field (see Android guide).
  2. Build flavors are expected to go away in 11.0.1, so if your not in a hurry, hold it off for a day or two
  3. MOST IMPORTANTLY, Detox' support for RN>.56 on Android is a work in progress, that is currently blocked mostly due to an issue in RN itself. In addition, be advised that with RN .58+ you have to switch your native compile target to 28 and that introduces problems in it's own (e.g. this blogpost which effectively explains why loading the JS bundle from the running packager initially breaks as you upgrade).

@d4vidi
Copy link
Collaborator

d4vidi commented Mar 18, 2019

Everyone interested in work associated with RN versions (on Android) are most welcome to follow the original upgrade issue. I'd be happy to get insights and feedback from everyone there! For now, closing this issue.

@d4vidi d4vidi closed this as completed Mar 18, 2019
@kbrandwijk
Copy link

FYI: Selecting the correct build flavor does not prevent these errors. If a build flavor is present, it's dependency constraints are taken into account. That's why I actually had to comment out the other one to even make it work.

@elyalvarado
Copy link
Contributor Author

@d4vidi If according to @kbrandwijk the issue is not fixed by selecting the correct build flavor, why was it closed?

I understand Android support for +0.56 is WIP, but if the issue exist it should remain open to keep track of it.

I also think that going through Android Studio shouldn't be needed, given that the detox cli exists it should work regardless.

@d4vidi d4vidi reopened this Mar 19, 2019
@d4vidi
Copy link
Collaborator

d4vidi commented Mar 19, 2019

@elyalvarado sorry, I've somehow had that overlooked.

Please try the following:

  1. Detox 11.0.1 is out -- please upgrade! This is important since we got rid of the build flavors 🎉
  2. When I find myself facing version conflicts from dependencies I usually force these dependencies in my app's build script. So try adding this to your app's build.gradle:
implementation('com.squareup.okhttp3:okhttp:3.12.1') { force = true }
implementation('com.squareup.okio:okio:1.15.0') { force = true }
implementation('com.google.code.findbugs:jsr305:3.0.2') { force = true}

A bit nasty but it oughta do it.

@d4vidi
Copy link
Collaborator

d4vidi commented Mar 19, 2019

In any case, we're still partly stuck due to the RN issue I've mentioned. Please help us out by upvoting :)

@jgreen210
Copy link

The:

implementation('com.squareup.okhttp3:okhttp:3.12.1') { force = true }
implementation('com.squareup.okio:okio:1.15.0') { force = true }
implementation('com.google.code.findbugs:jsr305:3.0.2') { force = true}

...mentioned in #1208 (comment) sounds like the kind of thing that should work here, but doesn't. One problem I can see is that the "implementation" is for the app, not test code. If replace "implementation" with "androidTestImplementation" still get version conflicts for the same three libraries.

This is for detox 11.0.2.

@d4vidi
Copy link
Collaborator

d4vidi commented Mar 20, 2019

@jgreen210 could you provide a gradle log snippet containing info regarding the conflicts?

@jgreen210
Copy link

jgreen210 commented Mar 20, 2019

Could not resolve all files for configuration ':detox:debugCompileClasspath'.
> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
  Required by:
      project :detox
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints: 
        Dependency path 'OurApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'OurApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'OurApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.6.0.
  Required by:
      project :detox
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

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

> Could not resolve com.squareup.okhttp3:okhttp:3.6.0.
  Required by:
      project :detox
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

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

> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
  Required by:
      project :detox > androidx.test.espresso:espresso-core:3.1.1
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints: 
        Dependency path 'OurApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'OurApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'OurApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.google.code.findbugs:jsr305:3.0.2.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints: 
        Dependency path 'OurApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'OurApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'OurApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.12.1.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1
      project :detox > com.facebook.react:react-native:0.59.1 > com.squareup.okhttp3:okhttp-urlconnection:3.12.1
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> '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.59.1
      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 'OurApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'

> Could not resolve com.google.code.findbugs:jsr305:3.0.1.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1 > com.facebook.infer.annotation:infer-annotation:0.11.2
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints: 
        Dependency path 'OurApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'OurApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'OurApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.10.0.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1 > com.facebook.fresco:imagepipeline-okhttp3:1.10.0
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'OurApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'OurApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

detox 11.0.2

Redoing what #1208 (comment)
says, but for detox 11.0.2 made these errors go away for me (until react native changes the versions again).

@Lythenas
Copy link

I'm also getting the same error as @jgreen210 using detox 11.0.2 and rn 0.59.1

@d4vidi
Copy link
Collaborator

d4vidi commented Mar 21, 2019

@jgreen210 was that when using implementation or androidTestImplementation? Anyways good to know its clear with 11.0.2/

@d4vidi
Copy link
Collaborator

d4vidi commented Mar 21, 2019

@Lythenas care to provide some gradle logs?

@jgreen210
Copy link

The logs in #1208 (comment) were with neither "implementation" nor "androidTestImplementation". I didn't try "implementation" since it's wrong. I did try "androidTestImplementation" - it gave the same errors (although I didn't actually compare them line by line).

@matax87
Copy link

matax87 commented Mar 21, 2019

I'm still having the described issue on detox 11.0.2 and RN 0.59.1

Could not resolve all files for configuration ':detox:debugCompileClasspath'.
> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
  Required by:
      project :detox
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints: 
        Dependency path 'themoviedb:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'themoviedb:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.6.0.
  Required by:
      project :detox
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

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

> Could not resolve com.squareup.okhttp3:okhttp:3.6.0.
  Required by:
      project :detox
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

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

> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
  Required by:
      project :detox > androidx.test.espresso:espresso-core:3.1.1
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints: 
        Dependency path 'themoviedb:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'themoviedb:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.google.code.findbugs:jsr305:3.0.2.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints: 
        Dependency path 'themoviedb:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'themoviedb:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.12.1.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1
      project :detox > com.facebook.react:react-native:0.59.1 > com.squareup.okhttp3:okhttp-urlconnection:3.12.1
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> '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.59.1
      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 'themoviedb:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'

> Could not resolve com.google.code.findbugs:jsr305:3.0.1.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1 > com.facebook.infer.annotation:infer-annotation:0.11.2
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints: 
        Dependency path 'themoviedb:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'themoviedb:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.10.0.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1 > com.facebook.fresco:imagepipeline-okhttp3:1.10.0
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'themoviedb:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'themoviedb:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

@Lythenas
Copy link

@d4vidi I't pretty much the same as the others:

Could not resolve all files for configuration ':detox:debugCompileClasspath'.
> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
  Required by:
      project :detox
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.6.0.
  Required by:
      project :detox
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

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

> Could not resolve com.squareup.okhttp3:okhttp:3.6.0.
  Required by:
      project :detox
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

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

> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
  Required by:
      project :detox > androidx.test.espresso:espresso-core:3.1.1
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.google.code.findbugs:jsr305:3.0.2.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.12.1.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1
      project :detox > com.facebook.react:react-native:0.59.1 > com.squareup.okhttp3:okhttp-urlconnection:3.12.1
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> '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.59.1
      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 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'

> Could not resolve com.google.code.findbugs:jsr305:3.0.1.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1 > com.facebook.infer.annotation:infer-annotation:0.11.2
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.10.0.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1 > com.facebook.fresco:imagepipeline-okhttp3:1.10.0
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

With implementation I still get:

Could not resolve all files for configuration ':detox:debugCompileClasspath'.
> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
  Required by:
      project :detox
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.6.0.
  Required by:
      project :detox
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

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

> Could not resolve com.squareup.okhttp3:okhttp:3.6.0.
  Required by:
      project :detox
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

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

> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
  Required by:
      project :detox > androidx.test.espresso:espresso-core:3.1.1
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.google.code.findbugs:jsr305:3.0.2.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.12.1.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1
      project :detox > com.facebook.react:react-native:0.59.1 > com.squareup.okhttp3:okhttp-urlconnection:3.12.1
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> '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.59.1
      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 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'

> Could not resolve com.google.code.findbugs:jsr305:3.0.1.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1 > com.facebook.infer.annotation:infer-annotation:0.11.2
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.10.0.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1 > com.facebook.fresco:imagepipeline-okhttp3:1.10.0
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

And with androidTestImplementation:

Could not resolve all files for configuration ':detox:debugCompileClasspath'.
> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
  Required by:
      project :detox
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.6.0.
  Required by:
      project :detox
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

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

> Could not resolve com.squareup.okhttp3:okhttp:3.6.0.
  Required by:
      project :detox
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

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

> Could not resolve com.google.code.findbugs:jsr305:2.0.1.
  Required by:
      project :detox > androidx.test.espresso:espresso-core:3.1.1
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.google.code.findbugs:jsr305:3.0.2.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.12.1.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1
      project :detox > com.facebook.react:react-native:0.59.1 > com.squareup.okhttp3:okhttp-urlconnection:3.12.1
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> '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.59.1
      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 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio' strictly '1.13.0' because of the following reason: debugRuntimeClasspath uses version 1.13.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okio:okio:1.13.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1' --> 'com.squareup.okio:okio:1.15.0'

> Could not resolve com.google.code.findbugs:jsr305:3.0.1.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1 > com.facebook.infer.annotation:infer-annotation:0.11.2
   > Cannot find a version of 'com.google.code.findbugs:jsr305' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'androidx.test.espresso:espresso-core:3.1.1' --> 'com.google.code.findbugs:jsr305:2.0.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.google.code.findbugs:jsr305:3.0.2'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.infer.annotation:infer-annotation:0.11.2' --> 'com.google.code.findbugs:jsr305:3.0.1'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.google.code.findbugs:jsr305' strictly '2.0.1' because of the following reason: debugRuntimeClasspath uses version 2.0.1

> Could not resolve com.squareup.okhttp3:okhttp:3.10.0.
  Required by:
      project :detox > com.facebook.react:react-native:0.59.1 > com.facebook.fresco:imagepipeline-okhttp3:1.10.0
   > Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Constraint path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: debugRuntimeClasspath uses version 3.6.0
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
        Dependency path 'SysocrApp:detox:unspecified' --> 'com.facebook.react:react-native:0.59.1' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.12.1' --> 'com.squareup.okhttp3:okhttp:3.12.1'

Btw: Is there any way to make the logs collapsible on github?

@kbrandwijk
Copy link

I guess using resolutionStrategy.force for all of those, not just jsr, should prevent you from having to patch detox... using implementation or androidTestImplementation with force is a bit of a strange suggestion, as we're talking dependencies of detox here, not dependencies of your own project.

@compojoom
Copy link

compojoom commented Mar 27, 2019

Just for protocol I managed to get my app to build on .59 with detox 12 by changing
/node_modules/detox/android/detox/build.gradle

implementation 'com.squareup.okhttp3:okhttp:3.6.0'
implementation 'com.squareup.okio:okio:1.13.0'

to

implementation 'com.squareup.okhttp3:okhttp:3.12.1'
implementation 'com.squareup.okio:okio:1.15.0'

and

   configurations.all {
        resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.2'
   }

to the android block

@Abramovick
Copy link

Gosh, i hate upgrading react native versions, but I wanted hooks sooo bad, but now I've been pulling my hair out coz I'm getting the same errors with React Native v59.2 and detox v12.1.1.
Tried all those suggestions above but it's not working for me.

@pjay79
Copy link

pjay79 commented Mar 30, 2019

Same issue, RN 0.59.2, Detox 12.1.1

@elyalvarado
Copy link
Contributor Author

elyalvarado commented Mar 30, 2019

I have RN 0.59.2 and Detox 12.1.1 the following patch to detox (based on @kbrandwijk suggestions) makes it work for me:

diff --git a/node_modules/detox/android/detox/build.gradle b/node_modules/detox/android/detox/build.gradle
index 091809f..a3e2e95 100644
--- a/node_modules/detox/android/detox/build.gradle
+++ b/node_modules/detox/android/detox/build.gradle
@@ -53,13 +53,17 @@ android {
     lintOptions {
         abortOnError false
     }
+
+    configurations.all {
+        resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.2'
+    }
 }
 
 dependencies {
     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$_kotlinVersion"
 
-    implementation 'com.squareup.okhttp3:okhttp:3.6.0'
-    implementation 'com.squareup.okio:okio:1.13.0'
+    implementation 'com.squareup.okhttp3:okhttp:3.12.1'
+    implementation 'com.squareup.okio:okio:1.15.0'
 
     // Versions are in-sync with the 'androidx-test-1.1.0' release/tag of the android-test github repo,
     // used by the Detox generator. See https://github.com/android/android-test/releases/tag/androidx-test-1.1.0

I don't want the hassle of having to keep a fork up to date, so I'm using patch-package to automatically apply the same patch on any upgrade, keep it in version control, and avoid yarn removing my patch. I highly recommend it for this cases.

If anybody wants to apply this patch manually and check if it works, you can copy and paste the content of the patch into a file (/tmp/detox+12.1.1.patch) and then run the following command in your project folder:

git apply --ignore-whitespace /tmp/detox+12.1.1.patch

@kbrandwijk
Copy link

Yeah that's basically the same answer I posted 12 days ago, and we're no closer to actually getting those dependencies sorted... :(

@elyalvarado
Copy link
Contributor Author

elyalvarado commented Mar 30, 2019

@kbrandwijk that's true, but two things here:

  1. Many people is still complaining about making the changes and it not working. A patch is more precise than instructions, which might be confusing for some.
  2. I don't see Detox applying those changes anytime soon because it'll probably break on older React Native versions, so the best option for now seems to be to keep applying the patch while they somehow solve the issue.

I updated my comment to reflect that the patch was created based on your suggestions.

@kbrandwijk
Copy link

@elyalvarado I absolutely agree about patch-package (#1208 (comment)). And I wasn't looking for credit, I was just looking to point out your second point (that it doesn't look like it will be fixed anytime soon), so I guess we are completely in agreement here ;)

@yogeshthanvi
Copy link

Hi I am using Detox 12.1.1 and RN 0.59 when I am trying to build with androidx changes i am getting below error for react-native-camera

Task :react-native-camera:transformResourcesWithMergeJavaResForMlkitDebugAndroidTest FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-camera:transformResourcesWithMergeJavaResForMlkitDebugAndroidTest'.

More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro'

  • Try:
    Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-camera:transformResourcesWithMergeJavaResForMlkitDebugAndroidTest'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
    at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
    at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
    at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
    Caused by: com.android.builder.merge.DuplicateRelativeFileException: More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro'
    at com.android.builder.merge.StreamMergeAlgorithms.lambda$acceptOnlyOne$2(StreamMergeAlgorithms.java:75)
    at com.android.builder.merge.StreamMergeAlgorithms.lambda$select$3(StreamMergeAlgorithms.java:100)
    at com.android.builder.merge.IncrementalFileMergerOutputs$1.create(IncrementalFileMergerOutputs.java:86)
    at com.android.builder.merge.DelegateIncrementalFileMergerOutput.create(DelegateIncrementalFileMergerOutput.java:61)
    at com.android.build.gradle.internal.transforms.MergeJavaResourcesTransform$1.create(MergeJavaResourcesTransform.java:379)
    at com.android.builder.merge.IncrementalFileMerger.updateChangedFile(IncrementalFileMerger.java:221)
    at com.android.builder.merge.IncrementalFileMerger.mergeChangedInputs(IncrementalFileMerger.java:190)
    at com.android.builder.merge.IncrementalFileMerger.merge(IncrementalFileMerger.java:77)
    at com.android.build.gradle.internal.transforms.MergeJavaResourcesTransform.transform(MergeJavaResourcesTransform.java:411)
    at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:239)
    at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:235)
    at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
    at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:230)
    at jdk.internal.reflect.GeneratedMethodAccessor794.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
    at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99)
    ... 31 more

  • Get more help at https://help.gradle.org

BUILD FAILED in 9s
543 actionable tasks: 6 executed, 537 up-to-date
detox[44706] ERROR: [cli.js] Error: Command failed: cd android && ./gradlew assembleDebug assembleAndroidTest --stacktrace -DtestBuildType=debug && cd ..

I have also used the below option as suggested by web but didn't get any success , Can anyone look into this because i am able to build with android studio .
/app/build.gradle
packagingOptions {
exclude 'META-INF/proguard/androidx-annotations.pro'
}

@kbrandwijk
Copy link

Android X isn't even supported by RN 0.59 yet, so I fail to see how Detox fits in. However, you could try adding that exclude to the build.gradle of react-native-camera.

@yogeshthanvi
Copy link

yogeshthanvi commented Apr 1, 2019 via email

@jgreen210
Copy link

Detox's use of androidx is forcing you to enable androidx in your app's gradle.properties (i.e. globally), and I'm struggling to see a way to make it work with a react-native project with a significant number of dependencies. They'd all need to move to androidx at the same time or some sort of automated patching would be required (facebook/react-native#23112). The first option isn't possible (short of forking them all). The second option appears to need support from google, probably via a change in its jetifier tool that would allow it to be used in an npm/yarn postinstall hook.

@kbrandwijk
Copy link

I am using the latest Detox version, and didn't run into that requirement...

@d4vidi
Copy link
Collaborator

d4vidi commented Apr 4, 2019

Please give the latest Detox - 12.1.3 a try with this one. Follow the migration guide as needed.

@elyalvarado
Copy link
Contributor Author

@d4vidi With Detox 12.1.3 it works on ReactNative 0.59.3 without the need of making any changes in detox's build.gradle. Great work from you @d4vidi fixing it, and from all the community that participated in finding a work-around while it was fixed.

@funador
Copy link

funador commented Apr 6, 2019

Big thanks @d4vidi, @elyalvarado and everyone else involved for getting this sorted.

@d4vidi
Copy link
Collaborator

d4vidi commented Apr 7, 2019

Sure thing, happy to help!

@yogeshthanvi
Copy link

yogeshthanvi commented Apr 8, 2019

Working fine with 12.1.3 but got the below failure which solved by adding packaging options

What went wrong:
Execution failed for task ':react-native-camera:transformResourcesWithMergeJavaResForMlkitDebugAndroidTest'.
More than one file was found with OS independent path 'META-INF/androidx.exifinterface_exifinterface.version'

Solved By :
Add following in android in build.gradle for react-native-camera
android {
.....
packagingOptions {
exclude 'META-INF/androidx.exifinterface_exifinterface.version'
exclude 'META-INF/proguard/androidx-annotations.pro'
}
}

@lock lock bot locked as resolved and limited conversation to collaborators Apr 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests