I have setup pipelines to run some android tests and make some builds, but it seems the build setup step is very slow because of the docker image which should be cached by bitbucket, as I'm using androidsdk/android-31. Duration of the build setup step is 1.5-2 minutes.
One thing I've noticed is that if I tried the same setup in a different repo, with the same settings, the build setup time is < 20s.
This is the code in bitbucket-pipelines: image: androidsdk/android-31
Do you have any suggestions for improving the build setup part?