Saturday, April 12, 2014

Android NDK sample program run unsuccessfully Hello-jni


As stated, are learning to use the NDK, and then follow the online tutorial is able to generate so library file
But each time you run the program is going to be an error,
I use the version of NDK-R9, I generated in the odd header file with javah c ・ ・ in which I am currently in jni folder


・ The specific needs of this error how to solve ah? ?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
native method is not found, you see if there's java native methods are implemented in JNI in, or check whether the correct method name to write
Reply:
The method is not found, a look at how your approach is mapped
Reply:
Name is not mapped right, or did not load so
Reply:
Ah, looked indeed like to thank you for your reply. Results posted ~

No comments:

Post a Comment