You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deploy/android.rst
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,17 @@ App Build Instructions
91
91
# e.g. for Linux: export JAVA_HOME=/home/user/Downloads/jdk-20
92
92
export JAVA_HOME=/path/to/jdk
93
93
94
-
6. Build the libs for Android app and then copy the built files to the ``android/MLCChat/app/src/main/src/libs``:
94
+
6. Install rustup if not yet installed. Run the command to install it.
95
+
96
+
.. code:: bash
97
+
98
+
# error
99
+
# ./prepare_libs.sh: line 4: rustup: command not found.
100
+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
101
+
# and set up the PATH
102
+
source"$HOME/.cargo/env"
103
+
104
+
7. Build the libs for Android app and then copy the built files to the ``android/MLCChat/app/src/main/src/libs``:
95
105
96
106
.. code:: bash
97
107
@@ -104,9 +114,9 @@ App Build Instructions
104
114
# libtvm4j_runtime_packed.so
105
115
cp -a build/output/. MLCChat/app/src/main/libs
106
116
107
-
7. Open folder ``android/MLCChat`` as the project with Android Studio. And connect your Android device to your machine. In the menu bar of Android Studio, click ``Build - Make Project``.
117
+
8. Open folder ``android/MLCChat`` as the project with Android Studio. And connect your Android device to your machine. In the menu bar of Android Studio, click ``Build - Make Project``.
108
118
109
-
8. Once the build is finished, click ``Run - Run 'app'``, and you will see the app launched on your phone.
119
+
9. Once the build is finished, click ``Run - Run 'app'``, and you will see the app launched on your phone.
0 commit comments