1

Bitrise 步骤install-missing-android-tools失败,因为它没有找到结构的 Gradle 插件版本1.25.4

但正如您在此处看到的那样,版本存在,当我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 |
+---+---------------------------------------------------------------+----------+
4

1 回答 1

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 上不再可用,因为它可以使用本地缓存版本。

于 2018-09-24T05:28:25.437 回答