working with jar and so files in Xamarin forms

2019-09-03 16:23发布

问题:

I'm working with Brother Label Printer "QL-710W" for printing purpose. I'm using Xamarin forms targeting Android for printing a web view content.

I'm facing problem in communicating with the printer. They have provided android demo application with code which is working fine for me in Android studio.

I'm trying to use provided .jar files and .so files in Xamarin Android. I'm stuck in adding and consuming .jar and dependent .so files.

Can any one suggest, How to add .jar files and .so files in binding project.

This is the error I'm getting

Java.Lang.UnsatisfiedLinkError: Couldn't load createdata from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/PrintPOC.PrintPOC-1.apk"],nativeLibraryDirectories=[/data/app-lib/PrintPOC.PrintPOC-1, /vendor/lib, /system/lib]]]: findLibrary returned null