@@ -16,54 +16,56 @@ developed remotely on Coder.
16
16
local machine.
17
17
18
18
1 . Start Android Studio, and when prompted, install the SDK.
19
- ![ Android SDK
20
- Install] ( ../../assets/android-sdk-missing.png )
19
+
20
+ ![ Android SDK Install] ( ../../assets/android-sdk-missing.png )
21
21
22
22
1 . [ Create and start] ( https://developer.android.com/studio/run/managing-avds ) a
23
- Virtual Device. ![ Android Device] ( ../assets/android-avd.png )
23
+ Virtual Device.
24
+
25
+ ![ Android Device] ( ../../assets/android-avd.png )
24
26
25
27
1 . Create a workspace variable called ` ANDROID_SDK_PATH ` and set it to the
26
28
installation path of your Android SDK (for example, it's typically
27
29
` ~/Library/Android/sdk ` on macOS and
28
30
` C:\Users\<USER_NAME>\AppData\Local\Android\sdk ` on Windows).
29
- ![ Android SDK
30
- Path] ( ../../assets/android-sdk-path.png )
31
+
32
+ ![ Android SDK Path] ( ../../assets/android-sdk-path.png )
31
33
32
34
1 . Start the Android Debug Server on port 5555:
33
35
34
- ``` console
35
- $ $ANDROID_SDK_PATH /platform-tools/adb tcpip 5555
36
- restarting in TCP mode port: 5555
37
- ```
36
+ ``` console
37
+ $ $ANDROID_SDK_PATH/platform-tools/adb tcpip 5555
38
+ restarting in TCP mode port: 5555
39
+ ```
38
40
39
41
1 . Create a Coder workspace that includes the Android SDK; you can do this by
40
42
including the following in your Dockerfile:
41
43
42
- ``` Dockerfile
43
- FROM codercom/enterprise-android
44
- ```
44
+ ``` Dockerfile
45
+ FROM codercom/enterprise-android
46
+ ```
45
47
46
- Alternatively, you can import or extend
47
- [ Coder's image] ( https://github.com/cdr/enterprise-images/blob/master/images/android/Dockerfile.ubuntu ) )
48
+ Alternatively, you can import or extend
49
+ [ Coder's image] ( https://github.com/cdr/enterprise-images/blob/master/images/android/Dockerfile.ubuntu )
48
50
49
51
1 . Forward your Android Debug Server to the remote workspace:
50
52
51
- ``` console
52
- # You must have the Coder CLI installed.
53
- $ coder config-ssh
54
- $ ssh -R 5555:127.0.0.1:5555 coder.< NAME_OF_YOUR_WORKSPACE>
55
- ```
53
+ ``` console
54
+ # You must have the Coder CLI installed.
55
+ $ coder config-ssh
56
+ $ ssh -R 5555:127.0.0.1:5555 coder.<NAME_OF_YOUR_WORKSPACE>
57
+ ```
56
58
57
59
1 . Run ` adb devices ` to view the emulators forwarded from your local machine:
58
60
59
- ``` console
60
- $ adb devices
61
- List of devices attached
62
- emulator-5556
63
- ```
61
+ ``` console
62
+ $ adb devices
63
+ List of devices attached
64
+ emulator-5556
65
+ ```
64
66
65
67
1 . Build and run your Android applications remotely:
66
68
67
- ``` console
68
- ./gradlew android:installDebug
69
- ```
69
+ ``` console
70
+ ./gradlew android:installDebug
71
+ ```
0 commit comments