Skip to content

Commit fbc5876

Browse files
author
bruce
committed
chore:README
1 parent 48a583f commit fbc5876

1 file changed

Lines changed: 31 additions & 22 deletions

File tree

README.md

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,34 @@ For android you can now just copy the mainframer folder and rename it `.mainfram
4343
### DEFAULT USER ROOT:ROOT IS USED IN THIS SETUP.
4444

4545

46+
47+
### build with Android Studio
48+
49+
1. open Android Studio, then do these steps:
50+
51+
1. click **Run → Edit Configuration → +**.
52+
53+
1. select your **Android App**.
54+
55+
1. name a new name, e.g. remote-build.
56+
57+
1. in **Module**, select submodule name, may be `app`.
58+
59+
1. in **Before Launch**, click **-** to delete `Gradle-aware Make`
60+
61+
1. in **Before Launch**, click **+**, add **Run External Tool**, input a new name,like `remote assembleDebug`.
62+
63+
64+
1. in **Program**, input `bash`.
65+
66+
1. in **Parameters** input `mainframer.sh ./gradlew :app:assembleDebug -Pandroid.enableBuildCache=true`
67+
68+
1. in **Working directory** , input `$ProjectFileDir$`.
69+
70+
71+
4672
### In addition
73+
4774
when you got the error:
4875
```
4976
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/xxx/.ssh/remote-builder.pub"
@@ -79,26 +106,8 @@ Could not determine java version from '11.0.11'.
79106
```
80107
run `./gradlew wrapper --gradle-version 5.1.1`
81108

109+
**install some sdk?**
82110

83-
### build with Android Studio
84-
85-
1. open Android Studio, then do these steps:
86-
87-
1. click **Run → Edit Configuration → +**.
88-
89-
1. select your **Android App**.
90-
91-
1. name a new name, e.g. remote-build.
92-
93-
1. in **Module**, select submodule name, may be `app`.
94-
95-
1. in **Before Launch**, click **-** to delete `Gradle-aware Make`
96-
97-
1. in **Before Launch**, click **+**, add **Run External Tool**, input a new name,like `remote assembleDebug`.
98-
99-
100-
1. in **Program**, input `bash`.
101-
102-
1. in **Parameters** input `mainframer.sh ./gradlew :app:assembleDebug -Pandroid.enableBuildCache=true`
103-
104-
1. in **Working directory** , input `$ProjectFileDir$`.
111+
1. start your docker,
112+
1. run `ssh remote_builder` to enter your docker container. Or use docker command to enter it.
113+
1. run `/sdk/tools/bin/sdkmanager--install "ndk;21.0.6113669" --channel=3`.

0 commit comments

Comments
 (0)