tanersener / mobile-ffmpeg

FFmpeg for Android, iOS and tvOS. Not maintained anymore. Superseded by FFmpegKit.
https://tanersener.github.io/mobile-ffmpeg
GNU General Public License v3.0
3.85k stars 787 forks source link

java.lang.UnsatisfiedLinkError #622

Closed sanketkoladiya closed 3 years ago

sanketkoladiya commented 3 years ago

I am getting UnsatisfiedLinkError on android 9 & 10 on release mode from the play store.Below is the crash I got

Dependencies implementation 'com.arthenica:mobile-ffmpeg-full:4.4.LTS'

Logs

java.lang.UnsatisfiedLinkError: Bad JNI version returned from JNI_OnLoad in "/data/app/packagename-m1OXGa1yNNBlrEZSonabCg==/lib/arm64/libmobileffmpeg.so": 0 at java.lang.Runtime.loadLibrary0(Runtime.java:1071) at java.lang.Runtime.loadLibrary0(Runtime.java:1007) at java.lang.System.loadLibrary(System.java:1667) at com.arthenica.mobileffmpeg.Config.(Config.java:19)

java.lang.UnsatisfiedLinkError: at java.lang.Runtime.loadLibrary0 (Runtime.java:1016) at java.lang.System.loadLibrary (System.java:1669) at com.arthenica.mobileffmpeg.Config. (Config.java:133) at com.arthenica.mobileffmpeg.Config.nativeFFprobeExecute (Config.java) at com.arthenica.mobileffmpeg.FFprobe.execute (FFprobe.java:55) at com.arthenica.mobileffmpeg.FFprobe.getMediaInformationFromCommandArguments (FFprobe.java:123) at com.arthenica.mobileffmpeg.FFprobe.getMediaInformation (FFprobe.java:86)

Environment

Gradle Config android { compileSdkVersion 29 buildToolsVersion '29.0.3' defaultConfig { applicationId "$ApplicatioId" minSdkVersion 16 targetSdkVersion 29 multiDexEnabled true testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { abiFilters "arm64-v8a", "armeabi-v7a", "x86", "x86_64" } }

bundle { language { enableSplit = false } density { enableSplit = true } abi { enableSplit = true } } }

Any help will be appreciated, I am stuck between update the app on the play store.

sanketkoladiya commented 3 years ago

can anyone help me out with this error? this error is recently faced after I updated my app on playstore

tanersener commented 3 years ago

Stack trace included in your post is very generic. And, most of the time, a stack trace alone is not enough to understand what is wrong there. This is why we have #132. I suggest filling out issue template fields when you create an issue.

Additionally, searching for similar issues before creating a new one is also a good option.

sanketkoladiya commented 3 years ago

@tanersener can you please check now, I really need help as I am stuck for the last 1 week on this issue, the last change I made was just updating the android studio version and NDK version

iamkdblue commented 3 years ago

@sanketkoladiya are you using the Dynamic Feature module in your app?

Olegasv commented 3 years ago

@sanketkoladiya, I Think that problem with proguard rules. Try to disable (shrinkResources and minifyEnabled) in your gradle. If it solved the problem, add this line in your proguard rules: -keep class com.arthenica.mobileffmpeg.* { ; }

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.