[英]how to build ndk application?
您好如何構建ndk應用程序...現在我正在使用linux操作系統,而我是android應用程序的新手,請簡單告訴我...。
希望可以幫助您:
http://www.jondev.net/articles/Using_NDK_r4_with_the_Android_SDK_in_Netbeans
向您展示如何使用NDK構建簡單的“ Hello World”應用程序。
請注意,NDK不允許您構建應用程序。 它只會讓您構建一個共享庫對象( .so
),SDK應用程序將在運行時打開該共享庫對象以執行本機代碼。
代替構建和安裝應用程序的標准方法:
ant compile # (or ant debug)
ant install
您將有一個額外的步驟:
ndk-build # builds the .so files
ant compile # builds the Java app and embeds the .so within the final .apk
ant install
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.