Yes, all kind of build dependencies are possible to cache, so I don't see a specific reason why this should not be the case for Android SDK and CMake.
To get this to work, first find out which directories you need to cache. Then create two custom caches - one for Android SDK and one for CMake - and use them in the pipeline step(s) where applicable.
See as well:
We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events