私はアンドロイドndkが初めてです。
私はJavaコードとc/c++コードを必要とするアプリに取り組んでいます
そのためには、Android ndkが必要です。
しかし、この時点で、java と c/c++ を接続する ndk-build を実行できないことに固執しました。
そう。誰かがこの問題を解決するために私を助けてください。
WindowsとLinuxの両方で試しましたが、同じエラーが発生しました。
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