Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error when running ./gradlew clean in android studio (java)

Mike
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 26, 2024

BUILD FAILED in 41s
Watched directory hierarchies: [C:\aProj\Android-DE\MathPuzzler]
Configuration cache entry discarded due to serialization error.

1 answer

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2024

Welcome to the Atlassian Community!

This is almost certainly not a Bitbucket problem.  Your build process is failing, so you need to debug that.  Ignore Bitbucket for now, try running the build manually to find out where it is failing. 

Try giving it the same parameters you have given it in Bitbucket, they may be the problem.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 28, 2024

Hi Mike,

I just wanted to add to Nic's reply and provide more info on how to troubleshoot the build locally:

If this build runs on Atlassian's infrastructure or with a Linux Docker self-hosted runner, these builds run in Docker containers based on the image you specify in your bitbucket-pipelines.yml file. You can follow this guide to troubleshoot such a build locally with Docker:

If you use a Linux Shell or MacOS runner, these runners use Bash to run pipeline steps directly on the host machine. You can clone the repo and run the bitbucket-pipelines.yml file commands directly on the host machine in Bash.

If you use a Windows runner, it uses PowerShell to run pipeline steps on the Windows machine. You can clone the repo and run the bitbucket-pipelines.yml file commands on PowerShell on the host machine.


Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events