1
我使用的是來自C的NativeActivity。我的目標是獲得對JNIEnv的引用,以便我可以進一步進行Android調用。Android NativeActivity:AttachCurrentThread JNIInvokeInterface不是一個結構或聯盟
由我都聚集在Android文檔和#2的例子中去,我總是看到這個
state->activity->vm->AttachCurrentThread(&env, NULL);```
但我不斷收到這個錯誤...
error: member reference base type 'JavaVM' (aka 'const struct JNIInvokeInterface *') is not a structure or union
額外的解引用作品中,我沒有注意到。謝謝! –