Android之error: ‘const struct JNINativeInterface‘ has no member named ‘callVoidMethod‘

1、问题

error: 'const struct JNINativeInterface' has no member named 'callVoidMethod'

'obj' undeclared (first use in this function)

2、原因

JNINativeInterface

callVoidMethod函数写错了

obj 函数参数没有定义

3、解决办法

把callVoidMethod函数改成CallVoidMethod函数就可以了

函数参数改成obj就行了

(0)

相关推荐