From 52e0f5cd50c1bb6bbe99f64fd8cec8c228d63249 Mon Sep 17 00:00:00 2001 From: Harsh Vardhan Date: Tue, 7 Mar 2023 11:57:03 +0530 Subject: [PATCH] chore: fix Android SoLoader occasional crash on app re-install --- android/app/build.gradle | 1 + android/build.gradle | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/android/app/build.gradle b/android/app/build.gradle index cbebac64a3..a9f1aae3d6 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -252,6 +252,7 @@ dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+"// From node_modules + implementation 'com.facebook.soloader:soloader:0.10.1+' def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true"; def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true"; diff --git a/android/build.gradle b/android/build.gradle index 902d3dbb7b..dd92068598 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -34,6 +34,11 @@ allprojects { // Android JSC is installed from npm url(new File(["node", "--print", "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), "../dist")) } + configurations.all { + resolutionStrategy { + force "com.facebook.soloader:soloader:0.10.1" + } + } google() gradlePluginPortal()