From 1fc30b798d7e9fa30c68c0d7096d8111d7d6c2b5 Mon Sep 17 00:00:00 2001 From: Dmitry Novotochinov Date: Wed, 16 May 2018 09:58:13 +0300 Subject: [PATCH] Set React Native version in build.gradle Fixes React Native version mismatch error https://github.com/facebook/react-native/issues/19259#issuecomment-389064401 Signed-off-by: Dmitry Novotochinov --- android/app/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 23de0b8892..bb43faf743 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -204,7 +204,9 @@ dependencies { implementation project(':realm') implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "com.android.support:appcompat-v7:26.1.0" - implementation "com.facebook.react:react-native:+" // From node_modules + // Force using exact RN version instead of relying on gradle dependency resolution + // https://docs.gradle.org/current/userguide/introduction_dependency_management.html#sec:dependency_resolution + compile ("com.facebook.react:react-native:0.53.3") { force = true } // From node_modules implementation project(':react-native-i18n') implementation project(':react-native-camera') implementation project(':react-native-status')