You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encountered a build failure on Android when using the react-native-quick-sqlite in version 8.1.0 (as well as 8.2.7) with a react native 0.74.5 project (no Expo). The error occurs when building a debug version of the app.
Details
When building in debug mode the following error appears:
2 files found with path 'lib/arm64-v8a/libreact_nativemodule_core.so' from inputs:
- /Users/X/workspace/zeitmeister/app/node_modules/react-native-quick-sqlite/android/build/intermediates/library_jni/debug/jni/arm64-v8a/libreact_nativemodule_core.so
- /Users/X/.gradle/caches/transforms-4/33fac424075fc23f7fbb9fb5fe63964a/transformed/jetified-react-android-0.74.5-debug/jni/arm64-v8a/libreact_nativemodule_core.so
If you are using jniLibs and CMake IMPORTED targets, see
https://developer.android.com/r/tools/jniLibs-vs-imported-targets
When excluding the libraries libreact_nativemodule_core.so and libturbomodulejsijni.so from the package, the build succeeds. This can be achieved by adding the following lines to packaging options in android/build.gradle (L168):
Encountered a build failure on Android when using the
react-native-quick-sqlite
in version 8.1.0 (as well as 8.2.7) with a react native 0.74.5 project (no Expo). The error occurs when building a debug version of the app.Details
When building in debug mode the following error appears:
> Task :app:mergeDebugNativeLibs FAILED
> Task :react-native-quick-sqlite:mergeDebugAndroidTestNativeLibs FAILED
Environment
react-native-quick-sqlite: 8.2.7
react-native: 0.74.5
Development OS: macOS
Android Studio: 2024.2.1 Patch 3
Android Target: Debug build
Gradle : 8.6
Background
The issue seems to be similar to this one:
mrousavy/react-native-vision-camera#3270
And as it turns out, it can be fixed like the one mentioned above:
mrousavy/react-native-vision-camera@16d6cd5
Workaround / Fix
When excluding the libraries
libreact_nativemodule_core.so
andlibturbomodulejsijni.so
from the package, the build succeeds. This can be achieved by adding the following lines to packaging options inandroid/build.gradle
(L168):I don't know if this error persists in the 9.x.x version but at this point I'm not able to test.
Will investigate further in a couple of days.
The text was updated successfully, but these errors were encountered: