Type ' * * * * * ' could not being resolved
Method ' ****** ' could not being resolved et cetera a lot of that sort of mistake
Workaround:
This is due to the fact that the jni.h is not imported, and this file is under the NDK directory.
So, refer to the following steps:
Project Properties, C + + general, Path and Symbols Select the include tag, ADD, $Android _ndk_home/platforms/android-* */arch-arm/usr/include and select all languages. Finally, apply---OK, this error is resolved.
If you add a header file or a problem, it might be because the project is a C + + project, but the code is in a code that uses the
1, if not the. cpp file, see the NDK layer function name is correct, generally Java_ package name _ main Activity name _ function name
If the package name is: COM.TEST.ABC, the main activity is: Mainactivity declares the local function name: Mytest
The function name of the NDK layer should be java_com_test_abc_mainactivity_mytest.
2. If it is a. cpp file, use the extern "C" {"Method Here"}, the local method in curly braces, to learn the Javah generated header file.
#ifdef __cplusplus
extern "C" {
#endif
Jniexport Jbytearray Jnicall Java_com_example_myeclipsejni_mainactivity_mydecrypt
(jnienv *ent, Jobject obj, Jbytearray paramarrayofbyte, jstring paramstring)
{
Code
}
#ifdef __cplusplus
}
#endif
Android NDK Development Compile-time prompt Native method not FOUND,NDK * * * could not be resolved