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

Weird Java binding errors...Unknown return type...FxDG naming violation

$
0
0

I have been trying to bind a Java library with 4 jar files into Xamarin. I have set up one of the jar files are the EmbdeddedJar, the other 3 as EmbeddedReferenceJar.

I have tons of warnings while building the bindings but the total count may not be as relevant as I see lots of duplicate errors/warnings.

  1. Unknown return type com.abc.RTTPEncodable

I see this interface in one of the Reference Jar files. The jar2xml command line seems ok, all jar files are correctly marked as either --jar or --ref...but the output api.xml indeed does not have this RTTPEncodable definition anywhere.

I get a wrning of FxDB naming violations. I tried to work it out in metadata.xml but it does not seem to be effective

warning BG8900: Type com.abc.credentials.Credentials: FxDG naming violation: Type name 'Credentials' matches namespace part 'Credentials'.

warning BG8900: Type com.abc.util.random.Random: FxDG naming violation: Type name 'Random' matches namespace part 'Random'.

my rules:

 <attr path="/api/package[@name='com.abc.credentials']/class[@name='Credentials']" name="managedName">SLCredentials</attr>
 <attr path="/api/package[@name='com.abc.util.random']/class[@name='Random']" name="managedName">SLRandom</attr>

Any ideas what's going on here ?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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