示例消息
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 重新映射 XML 文件中元素的属性<replace-method>包含一个值,该值不能解析为布尔值。 该特性需要有效的布尔值,例如 true 或 false。
解决方案
更新 JNI 重映射 XML 文件中的 target-method-instance-to-static 属性,使其使用有效的布尔值(true 或 false):
<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>