美文网首页
JNI 报错

JNI 报错

作者: 夏_0327 | 来源:发表于2020-04-07 09:20 被阅读0次

Andoird JNI一直调用报错,后来调查发现,方法必须先这样声明。

static JNINativeMethod methods[] {
    {"getCall", "([BLcom/csg/powermaint/model/SCall;)I", (void *)Java_com_csg_powermaint_service_Call101Service_getCall},
    {"login", "([BI)I", (void *)Java_com_csg_powermaint_service_Call101Service_login},
    {"beat", "()[B", (void *)Java_com_csg_powermaint_service_Call101Service_beat},
    {"initRTEFlag", "()I", (void *)Java_com_csg_powermaint_service_Call101Service_initRTEFlag},
    {"deviceParse", "([BI)I", (void *)Java_com_csg_powermaint_service_Call101Service_deviceParse},
    {"device101ActCall", "()[B", (void *)Java_com_csg_powermaint_service_Call101Service_device101ActCall},
    {"getCallResult", "()Lcom/csg/powermaint/model/TwoRemote;", (void *)Java_com_csg_powermaint_service_Call101Service_getCallResult},
};

相关文章

网友评论

      本文标题:JNI 报错

      本文链接:https://www.haomeiwen.com/subject/lqqgphtx.html