Edit

.NET for Android error XA4263

Example message

error XA4263: The exported member 'Peer.Get' has unsupported signature type 'ManagedValue'. Use a Java peer type, a supported managed-to-Java mapping, or [ExportParameter].

Issue

An [Export] method or [ExportField] initializer uses a managed parameter or return type that has no Java type mapping. The type cannot be represented safely in the generated Java declaration. This error also occurs when [ExportParameter] specifies a Java mapping that is incompatible with the managed type.

Solution

Use a primitive, string, array, Java peer, or another supported managed-to-Java type. Apply input/output stream mappings only to Stream, and XML parser mappings only to XmlReader. Do not apply these scalar mappings to arrays or other wrappers around those types. The types must be the framework System.IO.Stream and System.Xml.XmlReader types, not user-defined types with the same full name.