/cygdrive/d/android-ndk-r4/samples/sst/jni/H264Android.c:331: error: request for member 'GetEnv' in something not a structure or union /cygdrive/d/android-ndk-r4/samples/sst/jni/H264Android.c:334: error: request for member 'AttachCurrentThread' in something not a structure or union
有 #include <jni.h>
AttachCurrentThread是JavaVM的函数你最好先有一个全局的JavaVM变量,JavaVM* g_jvm
然后在某个叫你函数里env->GetJavaVM(&(g_jvm));
在线程里JNIEnv *env;g_jvm->AttachCurrentThread(&env, NULL);
member 'GetEnv' in something not a structure or union
/cygdrive/d/android-ndk-r4/samples/sst/jni/H264Android.c:334: error: request for
member 'AttachCurrentThread' in something not a structure or union