shahen94 / react-native-video-processing

Native Video editing/trimming/compressing :movie_camera: library for React-Native
https://shahen94.github.io/react-native-video-processing/
MIT License
1.24k stars 323 forks source link

[Error: Crop error: failed. java.io.IOException: Cannot run program "/data/app/com.packagename-nKQdhhg77r272z83uYjDug==/lib/arm64/libffmpeg.so": error=2, No such file or directory] #314

Closed ahmedbhesaniya97 closed 3 years ago

ahmedbhesaniya97 commented 3 years ago

Current Behavior

I'm using this library for cropping video,as it work prefects in debug build but it throws error while in production build. [Error: Crop error: failed. java.io.IOException: Cannot run program "/data/app/com.packagename-nKQdhhg77r272z83uYjDug==/lib/arm64/libffmpeg.so": error=2, No such file or directory]

Expected Behavior

It will be work perfect in production as well

Your Environment

react-native-video-processing - 2.0.0

ChintanRajpara commented 3 years ago

Same issue

chuchden commented 3 years ago

Same issue here too

murugeshnadar commented 3 years ago

same issue here, Please do update if anyone got solution

ahmedbhesaniya97 commented 3 years ago

@chuchden @murugeshnadar You are gettinng this error with android bundle ?

alejovdev commented 3 years ago

Im getting this error after uploading the .aab file to the store. Any updates?

murugeshnadar commented 3 years ago

I was getting the same error. The .aab file uploaded to the play console when downloaded to the device for internal testing does not uncompress the native library file hence we are getting the error. I added the below code to make it work and now my APK works on my device and I am able to use ProcessManager I added android:extractNativeLibs = "true" to AndroidManifest.xml file (This change made the code work locally in development) Added android.bundle.enableUncompressedNativeLibs=false to gradle.properties (This change made the code to work for APK downloaded using the play console for internal testing)

alejovdev commented 3 years ago

Thank you for the response, I'll try it tomorrow and i will let you know if it works for me, thanks👌

alejovdev commented 3 years ago

@murugeshnadar Thank you, it worked like a charm.

medmo7 commented 2 years ago

If any one is wondering where to add android:extractNativeLibs = "true" it's in application block:

<application android:extractNativeLibs = "true"

At least it work for me.