문제

I am doing this code in HelloWorld.c

#include "com_testndk_HelloWorld.h"

JNIEXPORT jstring JNICALL Java_com_testndk_HelloWorld_messageFromNativeCode (JNIEnv * env, jobject jObj)

{
return (*env)->NewStringUTF(env, "Hello World!");
}

It show me error on JNIEXPORT jstring and when i compile ndk then it show me this error enter image description here

도움이 되었습니까?

해결책

You need to include <jni.h>

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top