.NET for Android のエラー XA4260

メッセージ例:

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 の呼び出し可能ラッパーでは、コンストラクター シグネチャ内で、ジェネリック パラメーターやジェネリックの具体化、参照渡し型、ポインター、関数ポインター、または長方形配列を表現できません。

ソリューション

Java表示されるコンストラクターを削除するか、プリミティブ、文字列、バインドされたJavaオブジェクト、または 1 次元配列パラメーターを使用します。