how to build ndk application?

匿名 (未验证) 提交于 2019-12-03 10:03:01

问题:

hi how to build ndk application...now i am using linux os and i am new for android application please tell me simply....

回答1:

This should hopefully help you out:

http://www.jondev.net/articles/Using_NDK_r4_with_the_Android_SDK_in_Netbeans

Shows you how to build a simple 'Hello World' app using the NDK.



回答2:

Be aware that the NDK will not let you build applications. It will only let you build a shared library object (.so) that your SDK application will open at runtime in order to execute native code.

Instead of the standard way to build and install applications:

ant compile    # (or ant debug) ant install 

You will have an extra step:

ndk-build      # builds the .so files ant compile    # builds the Java app and embeds the .so within the final .apk ant install 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!