JNI开发:Class android.content.Context could not be found

来源:互联网 发布:hotline bling mv 知乎 编辑:程序博客网 时间:2024/05/16 11:07


     在jni开发中,有时候需要传入一个Context类型参数到C层,在使用javah生成头文件的时候,会报 javah Class android.content.Context could not be found.这个错误,原因是找不到android.content.Context该类,解决方法是,把Context类型改为Object类型即可。




原创粉丝点击