Edit

.NET for Android error XA4260

Example message

error XA4260: Type 'Example.MyActivity' has a constructor parameter type 'System.Int32&' that cannot be represented in a Java constructor. Remove the constructor or change the parameter to a supported Java type.

Issue

Java callable wrappers cannot represent generic parameters or instantiations, by-reference types, pointers, function pointers, or rectangular arrays in constructor signatures.

Solution

Remove the Java-visible constructor or use primitive, string, bound Java object, or single-dimensional array parameters.