我在本地方法執行SensorEventListener如下調用實例方法(使計算速度更快): public class GPSLogger extends Service
implements SensorEventListener {
public native void onSensorChanged(SensorEvent event);
public void
_main我得到這個錯誤從測試JNI: Undefined symbols for architecture x86_64:
"_JNI_CreateJavaVM", referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker c