Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29630

2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs...-react native

$
0
0

I am trying to enable package of ffmpeg-kit-react-native in react-native.The sample commands given in the example executes successfully. But I want to use libwebp for converting gif files to webp which is under package named video. As instrcuted . I have to enable the package to use some libraries.

2.2.1 Enabling a Package on AndroidEdit android/build.gradle file and add the package name in ext.ffmpegKitPackage variable.

ext {   ffmpegKitPackage = "<package name>"}

So I added a line in the node_module/ffmpeg-kit-react-native/android/build.gradle

android {  compileSdkVersion 30  defaultConfig {    minSdkVersion safeExtGet('ffmpegKitPackage', 'https').contains("-lts") ? 16 : 24    targetSdkVersion 30    versionCode 451    versionName "4.5.1"  }  buildTypes {    release {      minifyEnabled false    }  }  lintOptions {    disable 'GradleCompatible'  }  compileOptions {    sourceCompatibility JavaVersion.VERSION_1_8    targetCompatibility JavaVersion.VERSION_1_8  }  rootProject.ext.ffmpegKitPackage = "video" // Added this line here }

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:      - C:\Users\ADMIN\.gradle\caches\transforms-3\7403ebe5571a2ce5a6a5fc9876af4814\transformed\jetified-react-native-0.66.4\jni      - C:\Users\ADMIN\.gradle\caches\transforms-3\4be54e44fe38656741a8345504588323\transformed\jetified-ffmpeg-kit-video-4.5.1-1\jni     If you are using jniLibs and CMake IMPORTED targets, see     https://developer.android.com/r/tools/jniLibs-vs-imported-targets

I have tried ./gradlew clean but problem is still there.How to fix this error? Thanks


Viewing all articles
Browse latest Browse all 29630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>