The following error message appears when you compile the hello-jni example using the android-ndk-r4b command make APP = hello-jni:
Android NDK: APP variable defined to unknown applications: hello-jni
Android NDK: You might want to use one of the following:
Build/core/main. mk: 81: *** Android NDK: Aborting. Stop.
After checking OVERVIEW. TXT, the following steps are taken to compile r4b:
1/Place your native sources under $ PROJECT/jni /...
2/Write $ PROJECT/jni/Android. mk to describe your sources
To the NDK build system
3/Optional: write $ PROJECT/jni/Application. mk to describe your
Project in more details to the build system. You don't need
One to get started though, but this allows you to target
More than one CPU or override compiler/linker flags
(See docs/APPLICATION-MK.TXT for all details ).
4/Build your native code by running "$ NDK/ndk-build" from your
Project directory, or any of its sub-directories.
The compilation is successful as instructed,
This article is transferred from: Workshop. I hope you will focus on the help documentation. In this way, the response will remain unchanged.