ueno-llc / react-native-starter

Professional react-native starter kit with everything you'll ever need to deploy rock solid apps
https://ueno-llc.github.io/react-native-starter
MIT License
573 stars 89 forks source link

Detox okhttp3 version constraint conflicts on release build #216

Closed dgobaud closed 5 years ago

dgobaud commented 5 years ago

Get below errors on release build in the :detox:complileMinReactNative46DebugRenderscript task

Seem harmless can still run app though.

Caused by: org.gradle.api.GradleException: Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints: 
   Dependency path 'passfolio:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
   Constraint path 'passfolio:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: minReactNative46DebugRuntimeClasspath uses version 3.6.0
   Dependency path 'passfolio:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
   Constraint path 'passfolio:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: minReactNative46DebugRuntimeClasspath uses version 3.6.0
   Dependency path 'passfolio:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
   Constraint path 'passfolio:detox:unspecified' --> 'com.squareup.okhttp3:okhttp' strictly '3.6.0' because of the following reason: minReactNative46DebugRuntimeClasspath uses version 3.6.0
   Dependency path 'passfolio:detox:unspecified' --> 'com.squareup.okhttp3:okhttp:3.6.0'
   Dependency path 'passfolio:detox:unspecified' --> 'com.facebook.react:react-native:0.57.4' --> 'com.squareup.okhttp3:okhttp:3.11.0'
   Dependency path 'passfolio:detox:unspecified' --> 'com.facebook.react:react-native:0.57.4' --> 'com.facebook.fresco:imagepipeline-okhttp3:1.10.0' --> 'com.squareup.okhttp3:okhttp:3.10.0'
   Dependency path 'passfolio:detox:unspecified' --> 'com.facebook.react:react-native:0.57.4' --> 'com.squareup.okhttp3:okhttp-urlconnection:3.11.0' --> 'com.squareup.okhttp3:okhttp:3.11.0'
birkir commented 5 years ago

Yes, we're enforcing higher version

dgobaud commented 5 years ago

Is there a fix? How do we make it work or it doesn't matter?

On Mon, Feb 4, 2019 at 8:21 AM Birkir Gudjonsson notifications@github.com wrote:

Yes, we're enforcing higher version

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ueno-llc/react-native-starter/issues/216#issuecomment-460311252, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOsqxjMwHuXnOPTTUQawe9D6V1ddHQcks5vKF4MgaJpZM4ahccg .

birkir commented 5 years ago

Is there any noticeable problem? It may just be a warning.

I may need a larger stack trace to debug better, but I will try to repro tomorrow.

Thanks for the update.

dgobaud commented 5 years ago

Not entirely sure - was having trouble running the build saw these errors but think in the end this wasn't the problem. Looking at below gradle log I think the apk is built and completed before detox so probably not a real problem.

image

birkir commented 5 years ago

Please re-open if you are still encountering this issue with the latest version 3.0.0