Steps-install-missing-android-tools, 2.0.3 failed with exit status 1

Bitrise Build Issue Report template

Description of the issue

Android Build failed at steps-install-missing-android-tools with exit status 1

Please describe the issue here

Android Build failed at steps-install-missing-android-tools with exit status 1

Environment:

Where did the issue happen?

If on Bitrise.io: which stack? If not on Bitrise.io: on what operating system? (Plus any other information you can share)
Android & Docker, on Ubuntu 16.04

Which build Step causes the issue and which version of the step?

steps-install-missing-android-tools, version 2.0.3

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO
  • If you have multiple different build configurations (workflows), does the issue affect all/more than one? : YES/NO
  • If it’s an issue which happens sporadically, what’s the frequency? (e.g. Once a day ; about x% of the builds) :
  • Does upgrading the build Step to the latest version help? :NO
  • When did the issue start? :
    Today

Linux/Android stack builds

Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( https://www.bitrise.io/cli )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/ .

Other stacks

Can it be reproduced by running the build locally with our CLI ( https://www.bitrise.io/cli ), after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( https://www.bitrise.io/cli )?

Build log

Please attach the build log (you can download the build log from the build’s page, once the build is finished, using the “Download log” button - floating at the bottom right corner of the log viewer), or if you can’t attach the whole log then send the full log through a private channel (e.g. email - https://www.bitrise.io/contact ), with a link to the related GitHub issue.

+------------------------------------------------------------------------------+
| (0) install-missing-android-tools                                            |
+------------------------------------------------------------------------------+
| id: install-missing-android-tools                                            |
| version: 2.0.3                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2017-10-18T05:10:32Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
INFO[05:10:32] Start installing (golang) with apt-get       
INFO[05:10:32]  * [OK] Step dependency (go) installed, available. 
Configs:
- RootBuildGradleFile: android/build.gradle
- GradlewPath: android/gradlew
- AndroidHome: /opt/android-sdk-linux
Preparation
Set executable permission for gradlew
Ensure android licences
Initialize Android SDK
Ensure required Android SDK components
Searching for missing SDK components using:
$ ./gradlew "dependencies"
Downloading https://services.gradle.org/distributions/gradle-2.14.1-all.zip

Unzipping /root/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yv/gradle-2.14.1-all.zip to /root/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yv
Set executable permissions for: /root/.gradle/wrapper/dists/gradle-2.14.1-all/8bnwg5hd3w55iofp58khbp6yv/gradle-2.14.1/bin/gradle
Download https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.pom
Download https://jcenter.bintray.com/com/google/guava/guava/18.0/guava-18.0.jar
File /root/.android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 23.0.1 in /opt/android-sdk-linux/licenses
License for package Android SDK Build-Tools 23.0.1 accepted.
Preparing "Install Android SDK Build-Tools 23.0.1".
"Install Android SDK Build-Tools 23.0.1" ready.
Finishing "Install Android SDK Build-Tools 23.0.1"
Installing Android SDK Build-Tools 23.0.1 in /opt/android-sdk-linux/build-tools/23.0.1
"Install Android SDK Build-Tools 23.0.1" complete.
Download https://jcenter.bintray.com/com/facebook/react/react-native/0.20.1/react-native-0.20.1.pom
Download https://jcenter.bintray.com/io/sentry/sentry-android/1.5.1/sentry-android-1.5.1.jar
Incremental java compilation is an incubating feature.
Checking the license for package Android SDK Build-Tools 25.0.2 in /opt/android-sdk-linux/licenses
License for package Android SDK Build-Tools 25.0.2 accepted.
Preparing "Install Android SDK Build-Tools 25.0.2".
"Install Android SDK Build-Tools 25.0.2" ready.
Finishing "Install Android SDK Build-Tools 25.0.2"
Installing Android SDK Build-Tools 25.0.2 in /opt/android-sdk-linux/build-tools/25.0.2
"Install Android SDK Build-Tools 25.0.2" complete.
Download https://jcenter.bintray.com/junit/junit/4.10/junit-4.10.pom
Download https://jcenter.bintray.com/com/android/tools/dvlib/24.1.3/dvlib-24.1.3.jar
Download https://jcenter.bintray.com/com/android/tools/lint/lint-api/24.1.3/lint-api-24.1.3.jar
downloadRobolectricDependencies /bitrise/src/android/build/robolectric-dependencies
Checking the license for package Android SDK Build-Tools 25.0.1 in /opt/android-sdk-linux/licenses
License for package Android SDK Build-Tools 25.0.1 accepted.
Preparing "Install Android SDK Build-Tools 25.0.1".
"Install Android SDK Build-Tools 25.0.1" ready.
Finishing "Install Android SDK Build-Tools 25.0.1"
Installing Android SDK Build-Tools 25.0.1 in /opt/android-sdk-linux/build-tools/25.0.1
"Install Android SDK Build-Tools 25.0.1" complete.
Download https://jcenter.bintray.com/com/aurelhubert/ahbottomnavigation/2.0.6/ahbottomnavigation-2.0.6.pom
Download https://jcenter.bintray.com/com/balysv/materialmenu/material-menu-toolbar/1.5.4/material-menu-toolbar-1.5.4.pom
Download https://jcenter.bintray.com/com/balysv/materialmenu/material-menu/1.5.4/material-menu-1.5.4.pom
Download https://jcenteexit status 1
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | install-missing-android-tools (exit code: 1)                  | 123 sec  |
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...bitrise-steplib/steps-install-missing-android-tools/issues |
| Source: ...://github.com/bitrise-steplib/steps-install-missing-android-tools |
+---+---------------------------------------------------------------+----------+

deleted In between Download statements.

Hi @ramki1979,

Thanks for creating the issue report! :slight_smile:

From the log it seems it’s a simple dependency / download issue - can you please follow this local debugging guide How to debug your build locally / “It works on my Mac/PC but not on bitrise.io” and let us know if you can reproduce the issue with that on your Mac/PC?

In the meantime I’ll schedule an update for this step, to generate more verbose logs in case of an error like this :slight_smile:

Closing this here, the solution was reported on the GitHub issue report: https://github.com/bitrise-steplib/steps-install-missing-android-tools/issues/26#issuecomment-338097291

@viktorbenei I have checked it on my mac & the result is same with additional info.
As you said, the issue is with google-fit dependency (11.4.0).