Skip to content

System.DllNotFoundException: libvlc

Summary

Hi I have a device running android 4.2 API 17.

During the Core.Initialize() method I get the error below.

Please advise.

Minimal project and steps to reproduce

This is happening with your samples forms android project as well.

What is the current bug behavior?

DLL not found error

What is the expected correct behavior?

Video should play

Relevant logs and/or screenshots

System.DllNotFoundException: libvlc at (wrapper managed-to-native) LibVLCSharp.Shared.Core+Native.JniOnLoad(intptr,intptr) at LibVLCSharp.Shared.Core.InitializeAndroid () [0x00001] in C:\Development\VLCSharp\libvlcsharp-3.x\LibVLCSharp\Shared\Core.cs:116 at LibVLCSharp.Shared.Core.Initialize (System.String libvlcDirectoryPath) [0x00007] in C:\Development\VLCSharp\libvlcsharp-3.x\LibVLCSharp\Shared\Core.cs:71 at LibVLCSharp.Forms.Sample.MainViewModel.Initialize () [0x00002] in C:\Development\VLCSharp\libvlcsharp-3.x\Samples\Forms\LibVLCSharp.Forms.Sample\MainViewModel.cs:42

Environment

  • OS: Android
  • Version 4.2 17
  • Device: Proprietary
  • LibVLC version and architecture: 3.1.2
  • LibVLCSharp version: 3.1.0

Possible fixes

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information