Kmp External Codec Libvlcjni.so Cpu Arm64-v8a 2021 Today

Once loaded, you can instantiate VLC's MediaPlayer :

src/ └── androidMain/ └── jniLibs/ └── arm64-v8a/ ├── libvlcjni.so ├── libvlc.so └── (other dependent .so files) In your build.gradle.kts (Android target): kmp external codec libvlcjni.so cpu arm64-v8a

For KMP, ensure the Android target uses androidTarget() and not android() . The jniLibs folder must be correctly merged during the final APK/AAB build. 4. Loading the Library in KMP Shared Code Use platform-specific expects/actuals to load libvlcjni.so : 4.1 Common Kotlin ( commonMain ) expect fun loadVlcLibraries() 4.2 Android Actual ( androidMain ) import android.os.Build import java.io.File actual fun loadVlcLibraries() System.loadLibrary("vlcjni") // Additional setup for VLC context Once loaded, you can instantiate VLC's MediaPlayer :