DllNotFound - Android
Thanks, @mfkl for commenting on the issue https://github.com/07101994/xamarin-video-player/issues/1.
This issue relates to https://github.com/07101994/xamarin-video-player/issues/1 & https://github.com/07101994/xamarin-video-player/issues/2.
I am working on an open source video player with the LibVLCSharp library but I am facing an intermittent issue in that. The app is working fine but there is an intermittent issue of video playback doesn't work after the app ask for storage permission for the Android platform.
The issue reproducible code can be found at https://github.com/07101994/xamarin-video-player master branch.
This issue only relates to the Android platform.
Error messages:
DllImport error loading library 'libvlc': 'dlopen failed: library "/data/app/com.companyname-1/lib/arm64/libvlc" not found'.
DllImport error loading library '/system/lib/libvlc.so': 'dlopen failed: library "/data/app/com.companyname-1/lib/arm64//system/lib/libvlc.so" not found'.
Description:
Whenever fresh install of the app is done on the Android mobile the app debugs fine, but when the app is updated over the previously installed app the above error is displayed and the Android app crashes.
Steps to reproduce:
- Run the app from the Visual Studio.
- Verify that the app works well by selecting Video file from the video selector intent.
- Close the app.
- Run the app again and try out some other videos and verify that the above error shows up in the debug console and the video file is not playing anymore.
As a work around, the app needs to uninstalled from the smartphone and installed again in order to make the app debuggable again.
Let me know if you need further more details on this.