How can I describe this, creating an Android application from Eclipse using the NDK requires two steps.
Firstly, inside your terminal you need to run the NDK build script in your project. cd to the root directory of your project, and then run the ndk-build script inside this directory.
For example:
cd ~/workspace/hello-jni ./~/android-ndk-1.5_r1/ndk-build
After that, you should see some output, the result of which is to create a * .SO file in the obj directory in the project directory.
Once you have the * .SO file, the last step to creating an Android NDK application through Eclipse is to create it using Eclipse, like any other application, and then deploy it for testing.
If you make any changes to the C / C ++ code, you will need to repeat the first step and restore the * .SO file before creating and deploying your application from Eclipse again.
I would like to note that with the Android NDK, your Android apps are still Java based. They simply communicate with code written in C / C ++ using the Java Native Interface .
Finally, I do not know any Eclipse plugins that will help in the development of the NDK. Everything I know about NDK, I found out the official Android NDK documentation . Please feel free to comment and let me know if there is anything that I can clarify in my answer.
Rob S. Apr 14 2018-12-21T00: 00Z
source share