Compiling mobile applications are resource-intensive, but Coder allows you to leverage cloud resources to save time compiling while still keeping your native emulator experience.
You can use the Android emulator on your local machine to build and debug apps developed remotely on Coder.
Install Android Studio onto your local machine.
Start Android Studio, and when prompted, install the SDK. ![Android SDK
Create and start a Virtual Device.
Create an environment variable called
ANDROID_SDK_PATH and set it to the
installation path of your Android SDK (for example, it's typically
~/Library/Android/sdk on macOS and
C:\Users\<USER_NAME>\AppData\Local\Android\sdk on Windows).
$ANDROID_SDK_PATH/platform-tools/adb tcpip 5555 restarting in TCP mode port: 5555
Alternatively, you can import or extend Coder's image)
You must have the Coder CLI installed. coder config-ssh ssh -R 5555:127.0.0.1:5555 coder.<NAME_OF_YOUR_ENVIRONMENT>
adb devicesto view the emulators forwarded from your local machine:
adb devices List of devices attached emulator-5556