Ubuntu 18.04 设置android环境变量
使用vim打开bashrc命令
vi ~/.bashrc
vi ~/.bashrc
export ANDROID_SDK_HOME=/home/color/DevelopmentTools/Android/Sdk
export PATH=$PATH:${ANDROID_SDK_HOME}/tools
export PATH=$PATH:${ANDROID_SDK_HOME}/platform-tools
export PATH=$PATH:${ANDROID_SDK_HOME}/build-tools
export PATH=$PATH:${ANDROID_SDK_HOME}/ndk/25.0.8775105
生效命令
source ~/.bashrc
source ~/.bashrc