react-native-vlc-media-player
react-native-vlc-media-player copied to clipboard
Execution failed for task ':app:mergeDebugNativeLibs'
trafficstars
Environment
"react": "17.0.2",
"react-native": "0.65.1",
"react-native-vlc-media-player": "^1.0.39"
Step
npx react-native init project
yarn android 运行成功
yarn add react-native-vlc-media-player
yarn react-native link react-native-vlc-media-player
yarn android 运行失败
Error
* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
> 2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:
- /Users/chen/.gradle/caches/transforms-3/7cdf8de9c37004713d4017747f452054/transformed/jetified-react-native-0.65.1/jni
- /Users/chen/.gradle/caches/transforms-3/898b95b6b68efa9dcaafff9d6039811e/transformed/jetified-libvlc-all-3.1.12/jni
If you are using jniLibs and CMake IMPORTED targets, see
https://developer.android.com/r/tools/jniLibs-vs-imported-targets
Question
How to fix it ?
See this post - https://github.com/razorRun/react-native-vlc-media-player-test/issues/3