您当前的位置: 首页 >  ar

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

error: passing ‘const AppJniCommand’ as ‘this’ argument discards qualifiers [-fpermissive]

柳鲲鹏 发布时间:2021-07-14 16:19:31 ,浏览量:0

具体错误:

proxy_jni_function.cpp:199:55: error: passing ‘const AppJniCommand’ as ‘this’ argument discards qualifiers [-fpermissive]
  199 |     jbyte* jdata = pJniCommand->jstringToJbyte(jresult);
      |                                                       ^

错误是奇怪的,原因是简单的,就是多了个const:

static void jstringToJson(jstring jresult, const AppJniCommand* pJniCommand)
{
    jbyte* jdata = pJniCommand->jstringToJbyte(jresult);
}

改成:

static void jstringToJson(jstring jresult, AppJniCommand* pJniCommand)

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.2284s