管道:支持的摇篮版本最低为4.10.1。目前的版本是4.4

问题描述 投票:0回答:1

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

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

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

而就到位桶,现在的管道建设倾斜项目:错误是:

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
android gradle bitbucket bitbucket-pipelines
1个回答
5
投票
Minimum supported Gradle version is 4.10.1. Current version is 4.4.

声明说本身的解决方案

请更改内部项目> gradle这个>包装> gradle-wrapper.properties

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

distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
© www.soinside.com 2019 - 2024. All rights reserved.