No installed build tools found. Install the Android build tools version 19.1.0 or higher

Bitrise Build Issue Report template

Description of the issue

Please describe the issue here
My builds mysteriously started failing with the error message No installed build tools found. Install the Android build tools version 19.1.0 or higher without any change to my build config. Retrying the build still causes it to fail.

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)
On Bitrise, the stack is Xcode 11.1.x, on macOS 10.14.6 (Mojave)

Which build Step causes the issue and which version of the step?
My custom step that initiates the cordova build. The name of the step is Upgrade dependencies and start build.

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
  • Does the issue happen sporadically, or every time? : Every time now
  • Does upgrading the build Step to the latest version help? : N/A
  • When did the issue start? : A few hours ago when I pushed a build

Local reproduction

Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (ā€œTesting with a full clean git cloneā€) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried. N/A, not able to run local builds

Local reproduction: Linux / Android (docker based) 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/ . N/A, not able to run local builds

Build log

Please copy paste the buildā€™s bitrise.io URL here (or if the issue happens somewhere else then the full logs), or if you canā€™t share the url / log here then send the url or full log through a private channel (e.g. email - https://www.bitrise.io/contact ), with a link to the related Discuss issue. View the logs here.

4 Likes

Same for me, with stack Xcode 12.2.x on macOS 10.15.6 Catalina
Stop running since saturday 21 fev 2021

Now:

Welcome to Gradle 6.5!
Here are the highlights of this release:
 - Experimental file-system watching
 - Improved version ordering
 - New samples
For more details see https://docs.gradle.org/6.5/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 5.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Script '/Users/vagrant/git/platforms/android/CordovaLib/cordova.gradle' line: 64
* What went wrong:
A problem occurred evaluating project ':app'.
> No installed build tools found. Install the Android build tools version 19.1.0 or higher.
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':app'.
> compileSdkVersion is not specified. Please add it to build.gradle
* 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 54s
Command failed with exit code 1: /Users/vagrant/git/platforms/android/gradlew cdvBuildRelease -b /Users/vagrant/git/platforms/android/build.gradle
[ERROR] An error occurred while running subprocess cordova.
        
        cordova build android --release --device --buildConfig /var/folders/6q/wgy6jtp12... exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more information.
command failed, error: exit status 1

And before when running:

Welcome to Gradle 6.5!
Here are the highlights of this release:
 - Experimental file-system watching
 - Improved version ordering
 - New samples
For more details see https://docs.gradle.org/6.5/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 5.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.
> Task :app:cdvCreateAssetManifest
> Task :app:preBuild
> Task :app:preReleaseBuild
> Task :CordovaLib:preBuild UP-TO-DATE
1 Like

Same here, stopped working all of a sudden.

In my case all of a sudden I have 2 exceptions on cordova-archive

No installed build tools found. Install the Android build tools version 19.1.0 or higher.

and

compileSdkVersion is not specified. Please add it to build.gradle

1 Like

Someone at Bitrise needs to check any recent changes to the android sdk location, s/he can start by having a look here: https://stackoverflow.com/questions/25176594/android-sdk-location.

1 Like

Same issue for me. Was working the 19 february, and nothing change in my side.

1 Like

Adding this step to my workflow solve the issue :

- android-sdk-update@1:
    inputs:
    - platform_tools: stable
    - build_tools: 29.0.3
    - sdk_version: '29'
    - tools: 'on'
1 Like

Same issue for meā€¦ Also noticed that it started happening a couple of days ago.

It seems Bitrise has now resolved the issue. I didnā€™t apply @alexis.thaveau.s2e 's fix but my builds are no longer failing. I think bitrise have fixed the issue on their end. @SimonWatt @tl_marcio @christophe2324 are you still getting this error in your builds?

2 Likes

@Textras Iā€™m actually getting a different issue now on an earlier step on my workflow (during a ā€˜run npm commandā€™ step before the cordova-archive step), but similarly also on branch/workflow that previously built with no issues where I havenā€™t updated any codeā€¦ So I canā€™t confirm yet if the issue has gone away (or if the new issue is related).

Edit - I can confirm all is okay for me now too.

All good for me now!

1 Like

All good now

1 Like

Exactly the same issue for me. I havenā€™t change anything in my build config and suddenly it stopped working.

Same issue here.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.