代码之家  ›  专栏  ›  技术社区  ›  NickUnuchek Romulano

管道:最低支持等级版本为4.10.1。当前版本为4.4

  •  0
  • NickUnuchek Romulano  · 技术社区  · 5 年前

    我已更新了顶级build.gradle文件: 从

    classpath 'com.android.tools.build:gradle:3.1.4'
    

    classpath 'com.android.tools.build:gradle:3.3.0'
    

    现在无法在BitBucket管道上建立项目: 错误是:

    FAILURE: Build failed with an exception.
    * Where:
    Build file '/opt/atlassian/pipelines/agent/build/app/build.gradle' line: 1
    * What went wrong:
    A problem occurred evaluating project ':app'.
    > Failed to apply plugin [id 'com.android.application']
       > Minimum supported Gradle version is 4.10.1. Current version is 4.4. If using the gradle wrapper, try editing the distributionUrl in /opt/atlassian/pipelines/agent/build/gradle/wrapper/gradle-wrapper.properties to gradle-4.10.1-all.zip
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    * Get more help at https://help.gradle.org
    BUILD FAILED in 37s
    
    1 回复  |  直到 5 年前
        1
  •  2
  •   Vir Rajpurohit    5 年前
    Minimum supported Gradle version is 4.10.1. Current version is 4.4.
    

    声明本身说明了解决方案

    请在里面换 项目>渐变>包装>渐变-包装。属性

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
    

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip