The android builds are constantly failing when running ./gradlew dependencies. Usually for bintray downloads, but there is many occurrences, that fails for many reasons
Which build Step causes the issue and which version of the step?
install-missing-android-tools
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
The other error (in 366904ca11a003bd & 18cb189877ed7035):
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':sample'.
> Failed to notify project evaluation listener.
> java.lang.reflect.InvocationTargetException (no error message)
Without the code hard to say, but this seems to be an issue in the code somewhere, maybe in build.gradle or similar if you have something more complex in that. Though in the stack trace part of the log I also see: Caused by: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':sample:debugRuntimeClasspath' so it might be a missing/partial dependency? Not sure, I donāt recall seeing this before, but it seems to be coming from the build config (e.g. build.gradle) or similar file. You can see the stack-trace in the log, I guess that helps you more than it helps me (as Iām not familiar with your project/code)
Retrying...
Failed to ensure android components, error: output: Parallel execution with configuration on demand is an incubating feature.
Which is not the reflect the real issue at the moment of the failure (bintray not being available)
Second:
Regarding the other error (in 366904ca11a003bd & 18cb189877ed7035): After re-triggering the build, it succeeded without changing the code AT ALL! So, I will not believe that this is a bug on code. Specially that it doesnāt happen on other machines. This was caused by the failure on properly downloading the dependency because of the previously failed step. Maybe, because of the same Bintray being unavailable.
So, Iāll have to fork/refactor the Cache:Push/Pull steps, specially because Iāll not be able to fully move away from Bintray for now.
Iām facing the same problem, failing on āinstall-missing-android-toolsā step.
Iāve already run the code on different machines, and the build has worked fine on all local machines.
The log error is not conclusive:
What went wrong:
A problem occurred configuring project ā:appā.
> Failed to notify project evaluation listener.
> java.lang.reflect.InvocationTargetException (no error message)
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.
Iāve ruin the dependencies locally and everything seems to be working:
> Configure project :app
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
> Task :dependencies
Root project
No configurations
A web-based, searchable dependency report is available by adding the --scan option.
BUILD SUCCESSFUL in 1m 14s
1 actionable task: 1 executed
Does someone have any idea how to solve it? It breaks EVERY build. It started happening after we increment the build tools from 3.1.4 to 3.2.1 (Iāve already tried to get back to old version, but with no success)
We also have this issue in this project: https://app.bitrise.io/build/7c6e98e6d18c2496
Is there a way to check what exactly fails?
We tried with an empty project where build succeeds and we are trying to bring the build.gradle configuration ācloseā to the project that is failing trying to find the real issue, but itās taking some time until we finish the investigation. If you could have any clue in advance it would save us a lot of time