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 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.
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
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?
@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).