[Android NDK] Android NDK开发环境配置 --- 1 Linux

1. 首先在Android 官网上下载eclipse+Android SDK包。 这个是已经配置好了的eclipse. 自带android AVD + sdk. http://developer.android.com/sdk/index.html

2. 下载ndk http://developer.android.com/tools/sdk/ndk/index.html

3. 安装Eclipse CDT插件。 click Help -> Install New Software.. -> Add   CDT插件链接  "http://download.eclipse.org/tools/cdt/releases/galileo" 下载。

4. 在Eclipse中添加NDK location. Window -> Preferences -> Android -> NDK choose the location of your NDK folder.

5. vim ~/.bashrc; Add the lines below so that we can use "ndkbuild" command to compile native codes.

export ANDROID_NDK="PATH_TO_NDK"
export PATH="$PATH:$ANDROID_NDK"
alias ndkbuild="PATH_TO_NDK/ndk-build"


你可能感兴趣的:(Android,Android,JNI)