Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Binding .JAR Library - Charset Problem

Hi Guys,

i am dealing right now with Binding .JAR Problem. I need to bind .JAR Library from Zebra Mobile Printer to my Xamarin Forms Project. I am following this manual from Xamarin: https://developer.xamarin.com/guides/android/advanced_topics/binding-a-java-library/binding-a-jar/
I created Binding Library Project, set Jar Library as InputJar as stated in manual and I am getting still errors and DLL file was not created. I tried to set Library also to Embedded Jar but nothings changed. I am getting this error: "ByteCharset does not contain a constructor that takes 2 arguments" in 900 Files (Com.Zebra.Zq110.Charset.Cp437.cs). What am i doing wrong ? Or am I missing some reference ? Is there other way how to bind Jar Library to Xamarin Forms Project ? I think this Library from Zebra has been obfuscated, and that's the reason why compiler/converter is getting this error. Below I am sending screenshots, how looks like my error list with some code and link to Zebra SDK. I will be very grateful for any help.
Zebra SDK: https://www.zebra.com/us/en/support-downloads/mobile/zq110.html (ZQ110 Android Printer SDK v1.1)

Answers

  • RodrigoCollaoRodrigoCollao USMember ✭✭

    Hi,
    Where you able to fix this?
    Is that the right way to bind a Jar Library to Xamarin Forms project?

    Regards,
    RC

Sign In or Register to comment.