Android için .NET hatası XA1046

Örnek iletiler

error XA1046: Attribute 'target-method-instance-to-static' in element 'replace-method' has value 'yes' that cannot be parsed as boolean; /path/to/jni-remapping.xml line 5.

Issue

target-method-instance-to-static JNI yeniden eşleme XML dosyasındaki bir <replace-method> öğenin özniteliği boole olarak ayrıştırılamayan bir değer içerir. Öznitelik, false veya true gibi geçerli bir Boole değeri gerektirir.

Çözüm

target-method-instance-to-static Geçerli bir boole değeri (true veya false) kullanmak için JNI yeniden eşleme XML dosyanızdaki özniteliğini güncelleştirin:

<replacements>
  <replace-method
    source-type="com/example/Source"
    source-method-name="instanceMethod"
    target-type="com/example/Target"
    target-method-name="staticMethod"
    target-method-instance-to-static="true" />
</replacements>