【发布时间】:2018-02-13 10:18:53
【问题描述】:
我正在使用 C 中的 NativeActivity。 我的目标是获取对 JNIEnv 的引用,以便进行更多的 Android 调用。
根据我在 Android 文档和 Stackoverflow 上收集的示例,我不断看到这一点
state->activity->vm->AttachCurrentThread(&env, NULL);```
但我不断收到此错误...
error: member reference base type 'JavaVM' (aka 'const struct JNIInvokeInterface *') is not a structure or union
【问题讨论】:
标签: java android multithreading native-activity android-thread