madhavanmalolan / ffmpegandroidlibrary

One line integration for FFMPEG Library in Android
MIT License
90 stars 15 forks source link

Doesn't work - crash on run #19

Open Dshmuel opened 6 years ago

Dshmuel commented 6 years ago

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.mysoft.audio-1/base.apk"],nativeLibraryDirectories=[/data/app/com.mysoft.audio-1/lib/arm64, /data/app/com.mysoft.audio-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find "libffmpeg.so" at java.lang.Runtime.loadLibrary0(Runtime.java:972)

madhavanmalolan commented 6 years ago

Can you please share your android manifest and gradle files?

anonym24 commented 6 years ago

seems it's compiled only for arm v7 (32), but not for arm64, also there is x86 and x86_64

@madhavanmalolan can you please compile them

https://github.com/madhavanmalolan/ffmpegandroidlibrary/tree/master/ffmpegandroidlibrary/src/main/libs/armeabi-v7a

redoy-ahmed commented 6 years ago

I am facing same problem

jitendar7 commented 6 years ago

I was also facing this issue. Below is what i have added in my gradle

defaultConfig {
     ....
    ndk {
        abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
    }

}

Ramnath85 commented 6 years ago

I am getting a slightly different error related to this thread. Do i need to add libffmpeg.so separately? please suggest. java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.tabaud.musik-IneCtyuPnlLY16Wc13WacQ==/base.apk", zip file "/data/app/com.tabaud.musik-IneCtyuPnlLY16Wc13WacQ==/split_lib_directories_apk.apk", zip file "/data/app/com.tabaud.musik-IneCtyuPnlLY16Wc13WacQ==/split_lib_resources_apk.apk"],nativeLibraryDirectories=[/data/app/com.tabaud.musik-IneCtyuPnlLY16Wc13WacQ==/lib/x86, /data/app/com.tabaud.musik-IneCtyuPnlLY16Wc13WacQ==/base.apk!/lib/x86, /data/app/com.tabaud.musik-IneCtyuPnlLY16Wc13WacQ==/split_lib_directories_apk.apk!/lib/x86, /data/app/com.tabaud.musik-IneCtyuPnlLY16Wc13WacQ==/split_lib_resources_apk.apk!/lib/x86, /system/lib, /system/vendor/lib]]] couldn't find "libffmpeg.so"