-
-
Notifications
You must be signed in to change notification settings - Fork 51
Build Failed : More than one file was found with OS independent path 'lib/x86/libc++_shared.so' #54
Comments
i added to build.gradle file :
it builds , but app crashed on start up , android studio shows : 31839-31954/com.hlmp E/SoLoader: Error when loading lib: dlopen failed: library "libc++_shared.so" not found lib hash: 52bef5aa0fb455a23735042f417edc9a search path is /data/app/com.hlmp-vAWXk1fv9rTP7_wVw2LuNw==/lib/arm64 31839-31954/com.hlmp E/SoLoader: couldn't find DSO to load: libreactnativejni.so caused by: dlopen failed: library "libc++_shared.so" not found 31839-31954/com.hlmp E/AndroidRuntime: FATAL EXCEPTION: create_react_context |
not sure if related , i was prompted by Android studio to update NDK version to 19.2.5345600, before that , i remember this package is working pretty well . |
@tanersener from change log of 0.59.0 :
is it related ? |
React Native was using gnustl before, but now it uses libc++ and bundles it
in. That's why you are having this issue. Solution would remove libc++ from
the bundle and release a new version.
|
@dulmandakh thank you for help ! |
I can safely say that it is not related to NDK version. It looks like something new in |
as @dulmandakh pointed out, |
This issue will be fixed it in the next release which is planned to be published in the first week of April. |
any update ? |
It looks like it won't be possible to remove So official workaround to use
|
@tanersener thanks |
@tanersener it builds and runs , but it failed packaging with error below :
FAILURE: Build failed with an exception.
|
Can you share your |
package.json: "dependencies": { build.gradle: buildscript { allprojects { android->build.gradle: apply plugin: "com.android.application" import com.android.build.OutputFile project.ext.react = [ apply from: "../../node_modules/react-native/react.gradle" def enableSeparateBuildPerCPUArchitecture = false android {
} dependencies { task copyDownloadableDepsToLibs(type: Copy) { |
when i tried to build first time , it give two errors:
besides the changes above , i added lintOption and packagingOption to build.gradle, |
Do you have |
@tanersener no , just release keystore configurations , nothing more |
@tanersener i was able to package after i changed compileSdkVersion and targetSdkVersion to 28 from ~/node_modules/react-native-ffmpeg/android/build.gradle is this a good idea at all ? |
Well, editing files under |
|
Description
FAILURE: Build failed with an exception.
Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.
`
React Native Environment Info:
System:
OS: macOS 10.14.2
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 592.43 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
a totally new project , no other packages/plugin installed other than react-native-ffmpeg, no idea why, i remember it was working perfectly when i tried this project last time , is it related to react-native version ? and i assume there will be more such error other than "lib/x86/libc++_shared.so" ?
The text was updated successfully, but these errors were encountered: