Errore XA4261 di .NET for Android

Messaggio di esempio

error XA4261: Type 'Example.MyActivity' has Java constructor signature '(Ljava/lang/String;)V', but its base type does not expose a compatible Java constructor. Add a compatible base constructor or remove the derived constructor.

Issue

Il costruttore Java generato deve richiamare un costruttore Java nel tipo di base. Non è disponibile alcun costruttore di base compatibile o fallback senza parametri.

Soluzione

Esporre un costruttore registrato compatibile nel tipo di base, aggiungere un costruttore di base senza parametri o rimuovere il costruttore derivato.