如上圖,打開一個 AS 項目,file - project structure 這是個人3 個路徑 Ndk /Users/dhbm/Library/Android/sdk/ndk-bundle Sdk /Users/dhbm/Library/Android/sdk Jdk /Applications/Android Studio.app/Contents/jre/jdk/Contents/Homeandroid
export NDK_ROOT=/Users/dhbm/Library/Android/sdk/ndk-bundle export ANDROID_SDK_ROOT=/Users/dhbm/Library/Android/sdk export NDK_ROOT export ANDROID_SDK_ROOT
/Users/dhbm/Library/Android/sdk/ndk-bundle
/Users/dhbm/Library/Android/sdk
不當心export PATH ...的時候,寫錯了,結果,全部的命令都不起做用了 ls,vi,vim 等都會出來 command not found ,傻眼了!
export PATH=/usr/bin:/usr/sbin:/bin:/sbin: 保證 vi,ls 能夠使用後,再 vim .bash_profile ,刪除掉不當心的錯誤!