I am trying to use NDK in eclipse but following the instructions this error appears and I donโt understand where it comes from
this is my .h file
#include <jni.h> /* Header for class com_example_myproject_MainActivity */ #ifndef _Included_com_example_myproject_MainActivity #define _Included_com_example_myproject_MainActivity #ifdef __cplusplus extern "C" { #endif /* * Class: com_example_myproject_MainActivity * Method: getMyData * Signature: ()Ljava/lang/String; */ JNIEXPORT jstring JNICALL Java_com_example_myproject_MainActivity_getMyData (JNIEnv *, jobject); #ifdef __cplusplus } #endif #endif
Error = type "JNICALL" cannot be resolved
I also have syntax errors in the code view, but they do not appear between errors that they appear with JNIEXPORT
source share