美文网首页
mac : gradle 的安装配置

mac : gradle 的安装配置

作者: 舟_e9ce | 来源:发表于2020-11-21 10:22 被阅读0次

    6.6.1 gradle 下载 包含 4.1的android studio
    链接: https://pan.baidu.com/s/11SYj2j7XSBi7Mfd3RB1L_w
    提取码: fs6b

    解压放到能记住的路径下,并记录路径。

    终端打开

    open -e .bash_profile
    

    把下面一段复制放到bash_profile中,修改gradle的路径

    GRADLE_HOME=/xxx/gradle/gradle-5.5 
    export GRADLE_HOME
    export PATH=$PATH:$GRADLE_HOME/bin
    

    设置gradle的源

    source ~/.bash_profile
    

    查看版本

    gradle -version
    

    输出以下文字既表示成功

    Welcome to Gradle 6.6.1!
    
    Here are the highlights of this release:
     - Experimental build configuration caching
     - Built-in conventions for handling credentials
     - Java compilation supports --release flag
    
    For more details see https://docs.gradle.org/6.6.1/release-notes.html
    
    
    ------------------------------------------------------------
    Gradle 6.6.1
    ------------------------------------------------------------
    
    Build time:   2020-08-25 16:29:12 UTC
    Revision:     f2d1fb54a951d8b11d25748e4711bec8d128d7e3
    
    Kotlin:       1.3.72
    Groovy:       2.5.12
    Ant:          Apache Ant(TM) version 1.10.8 compiled on May 10 2020
    JVM:          1.8.0_271 (Oracle Corporation 25.271-b09)
    OS:           Mac OS X 10.16 x86_64
    

    相关文章

      网友评论

          本文标题:mac : gradle 的安装配置

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