linux/amd64).
No additional KVM setup is required when using that platform.
Getting started
Create a runner profile
We recommend using a dedicated profile for Android Emulator workflows.Go to your runner profiles and create a profile named
namespace-profile-android with:- Linux AMD64 (
linux/amd64) - Enough resources for your emulator,
4 vCPU x 8 GB RAMis a good starting point - Caching enabled to cache Gradle dependencies.
Set up caching
Use
namespacelabs/nscloud-cache-action to
cache Gradle dependencies for faster builds:Set up JDK and Android SDK
Use
actions/setup-java and android-actions/setup-android to install the required tooling:Full example
Here’s a complete workflow for running Android tests:Gradle build cache
In addition to caching Gradle dependencies with Cache Volumes, you can also use Namespace’s Gradle build cache to share build outputs across runs. This is complementary to caching dependencies — while Cache Volumes store downloaded dependencies, the Gradle build cache stores compilation outputs and task results. To use both in your workflow:Related documentation
- Nested Virtualization — Platform support for
/dev/kvm - Gradle integration — Gradle build caching
- Machine Shapes — Available machine configurations
- Caching — Speed up builds with cache volumes