Version 7.0 of the Android Gradle Plugin (AGP) removed all support for the AGP build cache (first introduced in AGP 2.3, then superseded by Gradle's build cache in AGP 4.1). This orb's save_build_cache and restore_build_cache commands still expect this build cache to exist, at the default locations ~/.android/build-cache and ~/.android/cache.
The Gradle build cache location is configurable. If someone has set up the Gradle build cache to use one of the former AGP build cache directories for caching, then these commands will continue to work. But if a user picks a different directory for caching, these commands will do nothing.
The docs for save_build_cache also reference https://developer.android.com/studio/build/build-cache, which no longer exists (archived version).
I'd be happy to put together a PR revising the command docs, but it seems like there's a bigger question here about what, if anything, these commands should do in a world without the AGP build cache. Should users just manage their own (CircleCI) caching depending on their Gradle setup? Should these commands be indicated for (very) old versions of AGP only? Is there some sort of general solution the orb could still provide? I'm not sure how Circle would like to approach this but I'll help however I can.
Version 7.0 of the Android Gradle Plugin (AGP) removed all support for the AGP build cache (first introduced in AGP 2.3, then superseded by Gradle's build cache in AGP 4.1). This orb's
save_build_cacheandrestore_build_cachecommands still expect this build cache to exist, at the default locations~/.android/build-cacheand~/.android/cache.The Gradle build cache location is configurable. If someone has set up the Gradle build cache to use one of the former AGP build cache directories for caching, then these commands will continue to work. But if a user picks a different directory for caching, these commands will do nothing.
The docs for
save_build_cachealso referencehttps://developer.android.com/studio/build/build-cache, which no longer exists (archived version).I'd be happy to put together a PR revising the command docs, but it seems like there's a bigger question here about what, if anything, these commands should do in a world without the AGP build cache. Should users just manage their own (CircleCI) caching depending on their Gradle setup? Should these commands be indicated for (very) old versions of AGP only? Is there some sort of general solution the orb could still provide? I'm not sure how Circle would like to approach this but I'll help however I can.