We use cookies to make your experience better.
Learn how to develop mobile apps with Coder.
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.
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).
Start the Android Debug Server on port 5555:
$ $ANDROID_SDK_PATH/platform-tools/adb tcpip 5555
restarting in TCP mode port: 5555
FROM codercom/enterprise-android
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 devices
to view the emulators forwarded from your local machine:$ adb devices
List of devices attached
emulator-5556
./gradlew android:installDebug
Our docs are open source. See something wrong or unclear? Make an edit.