美文网首页
设置环境变量

设置环境变量

作者: 浪人残风 | 来源:发表于2022-01-13 08:33 被阅读0次
    vi ~/.bash_profile
    
    ANDROID_SDK=~/Library/Android/sdk
    GRADLE_HOME=~/Documents/gradle-6.5
    NDK_HOME=~/Library/Android/sdk/ndk/20.0.5594570
    M2_HOME=~/Documents/apache-maven-3.6.2
    jx_HOME=~/Documents/jx_osx64sm
    flutter=~/Documents/flutter
    
    PATH=${PATH}:${ANDROID_SDK}/platform-tools
    PATH=${PATH}:${ANDROID_SDK}/tools
    PATH=${PATH}:${NDK_HOME}/bin
    PATH=${PATH}:${GRADLE_HOME}/bin
    PATH=${PATH}:${M2_HOME}/bin
    PATH=${PATH}:${jx_HOME}/bin
    PATH=${PATH}:${flutter}/bin
    
    export jx_HOME
    export GRADLE_HOME
    export ANDROID_SDK
    export NDK_HOME
    export M2_HOME
    export PATH
    
    
    source ~/.bash_profile
    

    相关文章

      网友评论

          本文标题:设置环境变量

          本文链接:https://www.haomeiwen.com/subject/fwfncrtx.html