Bitrise步骤install-missing-android-tools
失败,因为找不到结构的Gradle插件版本1.25.4
。
但是您可以看到here的版本存在,当我按预期方式运行bitrise run 'dev'
时,构建通行证。
我对正在发生的事情一无所知。步骤日志:
+------------------------------------------------------------------------------+
| (2) install-missing-android-tools |
+------------------------------------------------------------------------------+
| id: install-missing-android-tools |
| version: 2.2.0 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2018-09-20T20:11:58Z |
+------------------------------------------------------------------------------+
| |
INFO[20:11:58] Start installing (golang) with apt-get
INFO[20:11:58] * [OK] Step dependency (go) installed, available.
Configs:
- GradlewPath: ./Project/gradlew
- AndroidHome: /opt/android-sdk-linux
Preparation
Set executable permission for gradlew
Initialize Android SDK
Ensure android licences
Ensure required Android SDK components
Retrying...
Failed to ensure android components, error: output: FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'Project'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve io.fabric.tools:gradle:1.25.4.
Required by:
project :
> Could not resolve io.fabric.tools:gradle:1.25.4.
> Could not get resource 'https://jcenter.bintray.com/io/fabric/tools/gradle/1.25.4/gradle-1.25.4.pom'.
> Could not GET 'https://jcenter.bintray.com/io/fabric/tools/gradle/1.25.4/gradle-1.25.4.pom'.
> Read timed out
* 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 31s
error: exit status 1
| |
+---+---------------------------------------------------------------+----------+
| x | install-missing-android-tools (exit code: 1) | 105 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...bitrise-steplib/steps-install-missing-android-tools/issues |
| Source: ...://github.com/bitrise-steplib/steps-install-missing-android-tools |
+---+---------------------------------------------------------------+----------+
答案 0 :(得分:0)
似乎与jcenter.bintray.com有关-刚尝试打开链接的https://jcenter.bintray.com/io/fabric/tools/gradle/1.25.4/gradle-1.25.4.pom,我得到了404(未找到)。因此,即使存在该版本,它在jcenter上似乎也不存在。也许它过去在jcenter上可用但已被删除?
当然,如果它在本地缓存中可用,则gradle不会失败,即使它在远程/ URL上不再可用,因为它可以使用本地缓存的版本。