Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Unexpected Character $ - Java Binding error

$
0
0

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,


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>