#配置jdk环境
export JAVA_7_HOME=/Library/java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
export JAVA_8_HOME=/Library/java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
#创建默认版本
export JAVA_HOME=$JAVA_8_HOME
#创建alias命令,实现动态切换
alias jdk8='export JAVA_HOME=$JAVA_8_HOME'
alias jdk7='export JAVA_HOME=$JAVA_7_HOME'
export PATH=/Users/rbq/flutter_sdk/flutter/bin:$PATH
export ANDROID_HOME=/Users/rbq/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
export NDK_HOME=/Users/rbq/Library/Android/sdk/ndk-bundle
export PATH=$PATH:$NDK_HOME
export PATH=${PATH}:/Applications/Android\ Studio.app/Contents/gradle/gradle-4.1/bin
转载于:https://www.cnblogs.com/Free-Thinker/p/10214239.html