Domanda

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

È stato utile?

Soluzione

You need to include <jni.h>

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top