I'm not sure if this is the case, but if you use Eclipse, you need to update your project (F5 or right-click on the project in Project Explorer and select Refresh), after ndk-build and then create it in Eclipse. When you create your own part on the command line, Eclipse is not automatically aware of the changes made to the file.
source share