Unexpected Character $ - Java Binding error

ss27ss27 INMember

Hi,

I am trying java binding to a Xamarin forms project and the jar contains class name having $ and also variable names with $. I am getting "Unexpected Character $" error. I am trying to solve it by editing the metadata.xml file. It seems that I am doing it wrong, please check the following entries,

For the class names containing $. I am using,

    <attr path="/api/package[@name='com.wed.therace']/class[@name='CarDetails$']" 
        name="obfuscated">false</attr>

for the variables containing $,

<attr path="/api/package[@name='com.wed.therace']/class[@name='CarDetails$']/field[@name='machineParts$']" 
    name="obfuscated">false</attr>

What is the correct way? I got this from https://developer.xamarin.com/guides/android/advanced_topics/binding-a-java-library/customizing-bindings/java-bindings-metadata

Thanks in advance,

Answers

Sign In or Register to comment.