特拉维斯 | Android: 未安装平台工具 v26.0.2

Travis | Android: Platform tools v26.0.2 not installing

10 月 26 日,我的 Travis CI 构建突然开始失败,none 提到的解决方法对我有效(比如 https://github.com/travis-ci/travis-ci/issues/6193)。我的 lint 报告中报告的确切问题:

The SDK platform-tools version (23.0.1) is too old to check APIs compiled with API 25; please update

这是 Travis 作业的日志:https://api.travis-ci.org/jobs/294869249/log.txt?deansi=true

我的 PR link:https://github.com/edx/edx-app-android/pull/1020

platform-tools revision 26.0.2 是最近发布的,其下载完成时校验和错误,因此 Travis 在我的项目中使用 运行 lint 的后备 platform-tools revision 23.0.1 导致了这个问题。

这是作业日志 (https://api.travis-ci.org/jobs/294869249/log.txt?deansi=true) 中的错误摘录:

Installing Archives:

Preparing to install archives

Downloading Android SDK Platform-tools, revision 26.0.2

Download finished with wrong checksum. Expected b8130e7c390496cff12bf9355739bd41eed6a0a5, got 668ff8e319715175ff628ad52b124f154275fe2d.

Done. Nothing was installed.

有解决办法吗?

这个问题在 Travis 那边以某种方式自动解决了,我这边什么都不用做。

可以在我在 Travis 的 Github 上创建的这个问题中找到更多详细信息:

https://github.com/travis-ci/travis-ci/issues/8676