Build error while compiling Android source (JNI)

Posted by arTsmarT on Stack Overflow See other posts from Stack Overflow or by arTsmarT
Published on 2014-06-04T18:10:28Z Indexed on 2014/06/04 21:25 UTC
Read the original article Hit count: 265

Filed under:
|
|

I added some new functionality in C and when I try to build it, it gives me the following error:

libnativehelper/include/nativehelper/JNIHelp.h:116: error: undefined reference to 'jniRegisterNativeMethods' error.

I have included jnihelp.h in my C files.

Is this a makefile related issue or am I missing something?

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE    := newfile
LOCAL_SRC_FILES := newfile.cpp

include $(BUILD_SHARED_LIBRARY)

© Stack Overflow or respective owner

Related posts about android

Related posts about c++