在Java类(myClass)中,我具有以下方法:public Location getPointSuivantBase()。我想从JNI使用它。当我尝试使用以下方法获取此功能的ID时idGetPointSuivantBase=env->GetMethodID(jMyClass,"getPointSuivantBase","()Landroid/location/Location;");应用程序崩溃,提示该功能不存在。用于Location类函数(env->GetMethodID(jLocation,"getLatitude","()D"))的同一调用正确返回该函数的ID。是什么原因引起的?
添加回答
举报
0/150
提交
取消