Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1K
Views
Se encontraron 2 archivos con la ruta 'lib/arm64-v8a/libc++_shared.so' desde las entradas...-reaccionar nativo

Estoy tratando de habilitar el paquete de ffmpeg-kit-react-native en react-native. Los comandos de muestra proporcionados en el ejemplo se ejecutan correctamente. Pero quiero usar libwebp para convertir archivos gif a webp, que se encuentra en el paquete llamado video . Tal como se instruyó . Tengo que habilitar el paquete para usar algunas bibliotecas.

2.2.1 Habilitación de un paquete en Android Edite el archivo android/build.gradle y agregue el nombre del paquete en la variable ext.ffmpegKitPackage.

 ext { ffmpegKitPackage = "<package name>" }

Así que agregué una línea en 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

He intentado ./gradlew clean pero el problema sigue ahí. ¿Cómo arreglar este error? Gracias

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

agregue esto en su node_module/ffmpeg-kit-react-native/android/build.gradle

 android{ packagingOptions { pickFirst 'lib/x86/libc++_shared.so' pickFirst 'lib/x86_64/libc++_shared.so' pickFirst 'lib/armeabi-v7a/libc++_shared.so' pickFirst 'lib/arm64-v8a/libc++_shared.so' } rootProject.ext.ffmpegKitPackage = "video" }

ffmpeg-kit-react-native ya ha hablado sobre este error aquí. https://github.com/tanersener/ffmpeg-kit/wiki/Tips#2-depending-another-android-library-containing-libc_sharedso

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!