NDK configuration under Linux

Ndk environment variable added to the system terminal

1.1 If the terminal is bash, edit vim ~ / .bashrc
1.2. If the terminal is zsh, edit vim ~ / .zshrc
2. Add the following two to the end of file
#ANDROID_NDK是ndk目录,需要根据自己的改写
export ANDROID_NDK="/home/pozhu/Documents/android-ndk-r13b-linux-x86_64/android-ndk-r13b"
export PATH=\$ANDROID_NDK:\$PATH
3. To save and exit, execute the command to refresh environment variables
source ~/.zshrc

Guess you like

Origin www.cnblogs.com/pozhu15/p/12638420.html