I am new to android ndk.
I am working on an application that needs Java code as well as c / C ++ code
So, for this I need android ndk.
But I am stuck at this point that I cannot run ndk-build, which makes the connection between java and c / C ++.
So. please help me solve this problem.
I tried on both Windows and Linux but got the same error.
I got this error when I use ndk-build.
/home/kamal/android-ndk-r8e/build/core/add-application.mk:128: Android NDK: Compile thumb : ndk <= native.c jni/native.c: In function 'Java_com_example_demo_MainActivity_hello': jni/native.c:4:3: error: parameter name omitted jni/native.c:4:3: error: parameter name omitted jni/native.c:5:10: error: 'env' undeclared (first use in this function) jni/native.c:5:10: note: each undeclared identifier is reported only once for each function it appears in jni/native.c: In function 'Java_com_example_demo_MainActivity_add': jni/native.c:9:3: error: parameter name omitted jni/native.c:9:3: error: parameter name omitted jni/native.c:9:3: error: parameter name omitted jni/native.c:9:3: error: parameter name omitted jni/native.c:10:9: error: 'value1' undeclared (first use in this function) jni/native.c:10:18: error: 'value2' undeclared (first use in this function) make: *** [obj/local/armeabi/objs/myjni/native.o] Error 1
Kamal Kishor
source share