android flutter mac 开发环境变量配置

2020-06-10  本文已影响0人  addapp

创建一个.bash_profile

复制粘贴下面的 , 路径修改成自己的

使用source ./.bash_profile使刚刚修改的文件生效

如果用的是zsh  在zsh 对应的文件里加上source ./.bash_profile

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home PATH=$JAVA_HOME/bin:$PATH:. CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:. export JAVA_HOME export PATH export CLASSPATH export ANDROID_HOME=/Users/matt/Library/Android/sdk export PATH=${PATH}:${ANDROID_HOME}/tools export PATH=${PATH}:${ANDROID_HOME}/platform-tools export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn export PATH=/Users/matt/Library/flutter/flutter/bin:$PATH

上一篇下一篇

猜你喜欢

热点阅读