Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Need help with Java Bindings (nested classes are generated!)

$
0
0

I created a java binding and I'm getting the following error

Error   50  'C001': member names cannot be the same as their enclosing type 

Upon checking the generated file, I found there was a nested class with the same name as the containing class!?!

// Metadata.xml XPath class reference: path="/api/package[@name='it.custom.printer.api.android.p001']/class[@name='c001']"
[global::Android.Runtime.Register ("it/custom/printer/api/android/p001/c001", DoNotGenerateAcw=true)]
public partial class C001 : global::Java.Lang.Object {

    // Metadata.xml XPath class reference: path="/api/package[@name='it.custom.printer.api.android.p001']/class[@name='c001.c001']"
    [global::Android.Runtime.Register ("it/custom/printer/api/android/p001/c001$c001", DoNotGenerateAcw=true)]
    public partial class C001 : global::Java.Lang.Object {

I tried renaming the class (in metadata.xml) but this is causing a bunch of other errors. I am not sure if renaming the nested class is the right way of fixing this issue.

Can anybody help me with the java binding for the attached jar file?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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