Failed to determine android gradle plugin version

Description of the issue

Android build fails in second step after “git-clone” - "install-missing-android-tools " with message “Failed to determine android gradle plugin version, error: missing android gradle plugin version”

Environment:

Where did the issue happen?
On Bitirise in Android & Docker, on Ubuntu 16.04 (pre-installed tools) stack
Project with same configuration was successfully build last week.
The project in it’s current state can be perfectly built on our Windows machines using Android Studio 3.0 Beta 2.

Which build Step causes the issue and which version of the step?
Android build fails in second step after “git-clone” - "install-missing-android-tools " with message “Failed to determine android gradle plugin version, error: missing android gradle plugin version”

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. : Caches are not used
  • If you have multiple different build configurations (workflows), does the issue affect all/more than one? : Using only one workflow
  • If it’s an issue which happens sporadically, what’s the frequency? (e.g. Once a day ; about x% of the builds) : first time
  • Does upgrading the build Step to the latest version help? : All steps are set to using latest version
  • When did the issue start? : Today, with seemingly no connection to project changes. The source code changed, the gradle files not.

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/ .
Could not install Bitrise CLI due to “Error: Permission denied @ rb_file_s_rename - (_examples, /tmp/bitrise-20170824-14165-j6kwm6/bitrise-1.8.0/src/github.com/bitrise-io/bitrise/_examples)”

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 )?
Could not install Bitrise CLI due to “Error: Permission denied @ rb_file_s_rename - (_examples, /tmp/bitrise-20170824-14165-j6kwm6/bitrise-1.8.0/src/github.com/bitrise-io/bitrise/_examples)”

Build log

Will be sent to email.

1 Like

Issue resolved by downgrading “Install missing Android tools” step from “always latest” (2.0.0) to previous 1.1.0 .

Hi @PetruLingurar,
thanks for the report!

We released a new version (2.0.1) of install-missing-android-tools, which does not use the Android Gradle Plugin version anymore.

1 Like