在Java類(myClass)中,我具有以下方法:public Location getPointSuivantBase()。我想從JNI使用它。當我嘗試使用以下方法獲取此功能的ID時idGetPointSuivantBase=env->GetMethodID(jMyClass,"getPointSuivantBase","()Landroid/location/Location;");應用程序崩潰,提示該功能不存在。用于Location類函數(env->GetMethodID(jLocation,"getLatitude","()D"))的同一調用正確返回該函數的ID。是什么原因引起的?
添加回答
舉報
0/150
提交
取消